/* =============================================================
   Accredited Agents Plugin — accredited-agents.css
   ============================================================= */

/* ── Grid ── */
.aa-partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 24px 0;
}
.aa-partners-grid.col5 {
    justify-content: flex-start;
}
.aa-partners-grid.col5 > * {
    flex: 0 0 calc(20% - 16px);
    min-width: 160px;
}

/* ── Featured card ── */
.aa-partner-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: box-shadow .2s, transform .2s;
}
.aa-partner-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    transform: translateY(-2px);
}
.aa-card-logo img {
    max-width: 160px;
    height: 60px;
    object-fit: contain;
}
.aa-card-name {
    font-weight: 600;
    font-size: .85rem;
    color: #111;
    margin: 0;
}
.aa-card-country {
    font-size: .75rem;
    color: #6b7280;
    margin: 0;
}

/* ── Drawer card (logo-only style) ── */
.aa-registrar-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    transition: box-shadow .2s;
    justify-content: center;
    overflow: hidden;
}
.aa-registrar-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,.10);
}
.aa-logo-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.aa-logo-btn img {
    max-width: 160px;
    height: 60px;
    object-fit: contain;
    transition: opacity .2s;
}
.aa-logo-btn:hover img {
    opacity: .8;
}

/* ── Buttons ── */
.aa-open-modal-btn.btn,
.aa-submit-btn {
    background: #00b5b5;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    width: 100%;
    text-align: center;
}
.aa-open-modal-btn.btn:hover,
.aa-submit-btn:hover {
    background: #009999;
}
.aa-submit-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
}

/* Toggle drawer button */
.aa-toggle-drawer.btn-red {
    border: #22D4C7 1px solid;
    background: #22D4C7;
    font-size: 14px !important;
    line-height: 20px;
    font-weight: 700 !important;
    color: #000;
    padding: 10px 24px;
    border-radius: 10px;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    min-width: 159px;
    text-align: center;
    outline: none;
}
.aa-toggle-drawer.btn-red:hover {
    background: #0A0A0A;
    color: #22D4C7;
}

.aa-more-retailer {
    text-align: center;
    margin: 10px 0 20px;
}

/* ── Modal backdrop ── */
.aa-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.aa-modal.open {
    display: flex;
}
.aa-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    cursor: pointer;
}

/* ── Modal box ── */
.aa-modal-wrapper {
    position: relative;
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 36px 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    z-index: 1;
    margin: 16px;
}

/* ── Close button ── */
.aa-close-btn {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    cursor: pointer;
    color: #374151;
    padding: 4px;
    border-radius: 4px;
    transition: color .2s;
}
.aa-close-btn:hover { color: #000; }

/* ── Modal headings ── */
.aa-modal-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
}
.aa-modal-subtitle {
    color: #4b5563;
    font-size: .95rem;
    margin: 0 0 24px;
}

/* ── Form layout ── */
.aa-form-row--two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.aa-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}
.aa-form-group label {
    font-size: .875rem;
    font-weight: 600;
    color: #374151;
}
.aa-required { color: #e03; }
.aa-form-group input,
.aa-form-group textarea {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .95rem;
    color: #111;
    background: #f9fafb;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
    box-sizing: border-box;
}
.aa-form-group input:focus,
.aa-form-group textarea:focus {
    outline: none;
    border-color: #00b5b5;
    box-shadow: 0 0 0 3px rgba(0,181,181,.15);
    background: #fff;
}
.aa-form-group input.aa-invalid,
.aa-form-group textarea.aa-invalid {
    border-color: #e03;
}
.aa-form-group textarea {
    resize: vertical;
    min-height: 90px;
}
.aa-field-error {
    font-size: .8rem;
    color: #e03;
    min-height: 1rem;
}

/* ── Loader spinner ── */
.aa-spinner {
    width: 18px;
    height: 18px;
    animation: aa-spin .8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes aa-spin {
    to { transform: rotate(360deg); }
}

/* ── Notices ── */
.aa-form-notice {
    margin-top: 12px;
    font-size: .9rem;
    border-radius: 6px;
    padding: 0;
}
.aa-form-notice.success {
    background: #ecfdf5;
    color: #065f46;
    padding: 10px 14px;
    border: 1px solid #6ee7b7;
}
.aa-form-notice.error {
    background: #fef2f2;
    color: #991b1b;
    padding: 10px 14px;
    border: 1px solid #fca5a5;
}

/* ── Skip line ── */
.aa-skip-line {
    font-size: .82rem;
    color: #6b7280;
    margin-top: 12px;
    text-align: center;
}
.aa-skip-anchor {
    color: #00b5b5;
    text-decoration: underline;
}
.aa-skip-anchor:hover { color: #009999; }

/* ── Error page ── */
.aa-error { color: #991b1b; font-style: italic; }

.aa-registrar-card.registrarCard button, .aa-registrar-card.registrarCard button:focus, .aa-registrar-card.registrarCard button:hover {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    width: auto;
    outline: none;
    shadow: none;
}

/* Where to buy page */
.wheretobuy-modal {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px 60px 20px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Close Button */
.wheretobuy-modal .close-btn {
  position: absolute;
  top: 4px;
  right: 7px;
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  padding: 0;
  line-height: 24px;
  color: #000;
	border: none;
}
.wheretobuy-modal .close-btn:hover, .wheretobuy-modal .close-btn:focus {
	background: transparent;
	border:none;
}

/* Typography */
.domainavailable_modal .wheretobuy-modal h2 {
  font-size: 26px;
  margin: 0 0 10px;
  color: #1a1a1a;
  font-variation-settings: 'wght' 600, 'wdth' 110, 'ital' 0;
}

.domainavailable_modal .wheretobuy-modal .subtitle {
  font-size: 14px;
  color: #3d4b61;
  margin-bottom: 25px;
  line-height: 1.5;
  font-variation-settings: 'wght' 500, 'wdth' 120, 'ital' 0;
}

/* Form */
.domainavailable_modal .wheretobuy-modal .row {
  display: flex;
  gap: 15px;
}

.domainavailable_modal .wheretobuy-modal .input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
  flex: 1;
}

.domainavailable_modal .wheretobuy-modal label {
  font-size: 13px;
  margin-bottom: 6px;
  color: #0A0A0A;
  font-variation-settings: 'wght' 500, 'wdth' 100, 'ital' 0;
}

.domainavailable_modal .wheretobuy-modal input,
.domainavailable_modal .wheretobuy-modal textarea {
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #f1f3f5;
  font-size: 14px;
}

.domainavailable_modal .wheretobuy-modal textarea {
  resize: none;
  min-height: 100px;
}

/* Submit Button */
.domainavailable_modal .wheretobuy-modal .submit-btn {
  width: 100%;
  padding: 14px;
  border: none !important;
  border-radius: 8px;
  background: #23D4C7;
  color: #000;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  outline: none;
  box-shadow: none;
  font-variation-settings: 'wght' 600, 'wdth' 100, 'ital' 0;
}

.domainavailable_modal .wheretobuy-modal .submit-btn:hover {
  opacity: 0.9;
}
.domainavailable_modal .modal_buttons {
    display: flex;
    flex-direction: column;
}
.domainavailable_modal .modal_buttons .countinue_btn {
    text-align: left;
    color: #23D4C7;
    box-shadow: none;
    font-variation-settings: 'wght' 600, 'wdth' 100, 'ital' 0;
    text-decoration: none;
}
.modal_buttons .countinue_btn:hover {
  text-decoration: underline;
}
p.count-btn-wrap svg {
    width: 14px;
    vertical-align: middle;
}
.thankyou-label {
    font-size: 26px;
    margin: 0 0 10px;
    color: #22d4c7;
    font-variation-settings: 'wght' 600, 'wdth' 110, 'ital' 0;
}
.aa-thankyou-modal .wheretobuy-modal h2 {
    margin: 0 0 30px;
}
.aa-thankyou-modal .aa-modal-wrapper {
    max-width: 680px;
}
.aa-card-logo {
    cursor: pointer;
}
.aa-registrar-card.registrarCard button img, .aa-partner-card img {
    max-width: 100%;
    max-height: 50px;
}
/* ── Responsive ── */
@media (max-width: 1024px) {
    .aa-partners-grid.col5 > * {
        flex: 0 0 calc(25% - 15px);
    }
    .aa-retail-partner-section .aa-partners-grid .aa-partner-card.partnerCard, .aa-retail-partner-section .aa-partners-grid .registrarCard {
      flex: inherit;
      width: calc(100% / 3 - 14px);
      margin: 0;
      min-height: 110px;
    }
}
@media (max-width: 767px) {
    .aa-partners-grid.col5 > * {
        flex: 0 0 calc(33.333% - 14px);
    }
    .aa-form-row--two-col {
        grid-template-columns: 1fr;
    }
    .aa-modal-wrapper {
        padding: 28px 20px 24px;
    }
    .aa-retail-partner-section .aa-partners-grid {
    	gap: 10px;
    }
    .aa-retail-partner-section .aa-partners-grid .aa-partner-card.partnerCard, .aa-retail-partner-section .aa-partners-grid .registrarCard {
      flex: inherit;
      width: calc(100% / 2 - 5px);
      margin: 0;
      min-height: 90px;
    }
    .wheretobuy-modal {
    border-radius: 8px;
    padding: 20px 20px 10px;
  }
  .wheretobuy-modal h2 {
    font-size: 22px;
  }
  .wheretobuy-modal .subtitle {
    font-size: 12px;
    font-variation-settings: 'wght' 500, 'wdth' 100, 'ital' 0;
  }
  .wheretobuy-modal .row {
    flex-direction: column;
  }
  .wheretobuy-modal .row {
    gap: 0;
  }
}

@media (max-width: 480px) {
    .aa-modal-title { font-size: 1.2rem; }
}

/* Prevent body scroll when modal open */
body.aa-modal-open {
    overflow: hidden;
}

