/* Dropify — password fields with show/hide toggle, password reset screens.
   Selectors are strong (and use !important where themes / Elementor kits commonly override
   inputs and buttons) so the eye button never overlaps or gets restyled. */

.dfy-pw-wrap { position: relative; display: block; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.dfy-pw-wrap > input.dfy-pw-input { display: block; width: 100% !important; max-width: 100% !important; min-width: 0; min-height: 44px; margin: 0; box-sizing: border-box !important; text-overflow: ellipsis; }
/* room for the eye button, only once the script has enabled it */
.dfy-pw-wrap.is-ready > input.dfy-pw-input { padding-right: 52px !important; }
/* hide the browser's own reveal / clear buttons (Edge) so there is only one eye */
.dfy-pw-wrap > input.dfy-pw-input::-ms-reveal,
.dfy-pw-wrap > input.dfy-pw-input::-ms-clear { display: none; }

.dfy-pw-wrap > button.dfy-pw-toggle {
  position: absolute !important; top: 2px !important; bottom: 2px !important; right: 2px !important; left: auto !important;
  width: 46px !important; min-width: 46px !important; height: auto !important; min-height: 0 !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 6px !important;
  background: transparent !important; box-shadow: none !important; transform: none !important;
  color: var(--dropify-color-muted, #5B6B64) !important; line-height: 1 !important; font-size: 0 !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  cursor: pointer; z-index: 2; -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none;
}
.dfy-pw-wrap > button.dfy-pw-toggle[hidden] { display: none !important; }
.dfy-pw-wrap > button.dfy-pw-toggle:hover { color: var(--dropify-color-primary, #0A7D5A) !important; background: rgba(10, 125, 90, .06) !important; }
.dfy-pw-wrap > button.dfy-pw-toggle:focus { outline: none; }
.dfy-pw-wrap > button.dfy-pw-toggle:focus-visible { outline: 2px solid var(--dropify-color-primary, #0A7D5A) !important; outline-offset: -2px; }
.dfy-pw-wrap > button.dfy-pw-toggle svg { width: 20px; height: 20px; flex: none; pointer-events: none; }
.dfy-pw-wrap > button.dfy-pw-toggle .dfy-pw-icon-hide { display: none; }
.dfy-pw-wrap > button.dfy-pw-toggle.is-visible .dfy-pw-icon-show { display: none; }
.dfy-pw-wrap > button.dfy-pw-toggle.is-visible .dfy-pw-icon-hide { display: block; }

.dfy-pw-wrap > input.dfy-pw-input[aria-invalid="true"] { border-color: #DC2626 !important; }
.dfy-pw-error { margin: 6px 0 0 !important; font-size: 13px !important; line-height: 1.4; font-weight: 600; color: #B42318 !important; }
.dfy-pw-error[hidden] { display: none !important; }

/* Notices on the login / forgot / reset screens */
.dfy-auth-alert { padding: 14px 18px; border-radius: 8px; margin: 0 0 24px; font-weight: 600; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.dfy-auth-alert--error { background: #FDE8E8; color: #9B1C1C; border: 1px solid #F8B4B4; }
.dfy-auth-alert--success { background: #E3F7EE; color: #075C46; border: 1px solid #A7F3D0; }
.dfy-auth-alert--info { background: #EFF6FF; color: #1E3A8A; border: 1px solid #BFDBFE; }
.dfy-auth-hint { font-size: 12px; color: var(--dropify-color-muted, #5B6B64); margin: 6px 0 0; }
.dfy-auth-actions { display: flex; flex-direction: column; gap: 12px; }
.dfy-auth-link { color: var(--dropify-color-primary, #0A7D5A); font-weight: 700; text-decoration: none; }
.dfy-auth-link:hover { text-decoration: underline; }

@media (max-width: 767px) {
  /* 16px stops iOS from zooming into the field */
  .dfy-pw-wrap > input.dfy-pw-input { font-size: 16px !important; }
}

/* Password rules checklist */
.dfy-pw-rules { list-style: none !important; margin: 8px 0 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.dfy-pw-rules li { display: inline-flex; align-items: center; gap: 6px; margin: 0 !important; padding: 0 !important; font-size: 12px; line-height: 1.4; color: var(--dropify-color-muted, #5B6B64); list-style: none !important; }
.dfy-pw-rules li::before, .dfy-pw-rules li::marker { content: none !important; display: none !important; }
.dfy-pw-rule-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #C9D6CF; flex: none; position: relative; transition: background .15s ease, border-color .15s ease; }
.dfy-pw-rules li.is-met { color: var(--dropify-color-primary, #0A7D5A); font-weight: 700; }
.dfy-pw-rules li.is-met .dfy-pw-rule-dot { background: var(--dropify-color-primary, #0A7D5A); border-color: var(--dropify-color-primary, #0A7D5A); }
.dfy-pw-rules li.is-met .dfy-pw-rule-dot::after { content: ""; position: absolute; left: 3px; top: 0; width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ==========================================================================
   Seller registration form
   ========================================================================== */
.dropify-auth.dfy-reg { max-width: 680px; }
.dfy-reg .dropify-auth-card { overflow: hidden; }
.dfy-reg-form { margin: 0; }
.dfy-reg fieldset.dfy-reg-section { border: 0 !important; margin: 0 0 8px !important; padding: 0 !important; min-width: 0; }
.dfy-reg fieldset.dfy-reg-section + fieldset.dfy-reg-section { border-top: 1px solid var(--dropify-color-border, #E2EBE6) !important; padding-top: 20px !important; margin-top: 4px !important; }
.dfy-reg .dfy-reg-section legend {
  display: block; float: left; width: 100%; padding: 0 !important; margin: 0 0 14px !important;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dropify-color-primary, #0A7D5A);
}
.dfy-reg .dfy-reg-section legend + * { clear: both; }
.dfy-reg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.dfy-reg-grid > .dfy-reg-wide { grid-column: 1 / -1; }
.dfy-reg .dfy-reg-field { min-width: 0; margin-bottom: 16px; }
.dfy-reg .dropify-form-label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 13px; color: var(--dropify-color-dark, #12231D); }
.dfy-reg-req { color: #DC2626; }
.dfy-reg-opt { font-weight: 500; font-size: 12px; color: #8C9B94; }
.dfy-reg .dropify-form-control { width: 100%; max-width: 100%; min-height: 46px; box-sizing: border-box; }
.dfy-reg select.dropify-form-control { -webkit-appearance: none; appearance: none; padding-right: 40px !important; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235B6B64' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; }
[dir="rtl"] .dfy-reg select.dropify-form-control { padding-right: 14px !important; padding-left: 40px !important; background-position: left 14px center; }
.dfy-reg .dropify-form-control:focus { outline: none; border-color: var(--dropify-color-primary, #0A7D5A) !important; box-shadow: 0 0 0 3px rgba(10, 125, 90, .15); }
.dfy-reg .has-error .dropify-form-control,
.dfy-reg .dropify-form-control[aria-invalid="true"] { border-color: #DC2626 !important; }
.dfy-reg .has-error .dropify-form-control:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, .15); }
.dfy-reg-error { margin: 6px 0 0 !important; font-size: 13px !important; line-height: 1.4; font-weight: 600; color: #B42318 !important; }
.dfy-reg .dfy-markets label { flex: 1 1 140px; justify-content: flex-start; }
.dfy-reg-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.dfy-reg-terms { margin: 8px 0 18px; }
.dfy-reg-terms label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; line-height: 1.5; color: var(--dropify-color-dark, #12231D); }
.dfy-reg-terms input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--dropify-color-primary, #0A7D5A); cursor: pointer; }
.dfy-reg-terms.has-error input[type="checkbox"] { outline: 2px solid #DC2626; outline-offset: 2px; }

.dfy-reg .dfy-reg-submit { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }
.dfy-reg .dfy-reg-submit svg { flex: none; }
.dfy-reg .dfy-reg-submit.is-loading { opacity: .7; cursor: progress; }
[dir="rtl"] .dfy-reg .dfy-reg-submit svg { transform: scaleX(-1); }

@media (max-width: 600px) {
  .dfy-reg-grid { grid-template-columns: minmax(0, 1fr); }
  .dfy-reg .dropify-form-control { font-size: 16px !important; }
  .dfy-reg .dfy-markets label { flex: 1 1 100%; }
}
