/* Shopro Easy Checkout — strictly scoped UI. No gateway, iframe or checkout field hiding. */
.shopro-ec {
    --sec-blue: var(--shopro-account-blue, #011c65);
    --sec-yellow: var(--shopro-account-yellow, #fdc603);
    --sec-ink: #172333;
    --sec-muted: #596579;
    --sec-line: #d7dde6;
    box-sizing: border-box;
    color: var(--sec-ink);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
}
.shopro-ec *, .shopro-ec *::before, .shopro-ec *::after { box-sizing: border-box; }
body .shopro-ec [hidden], body .shopro-ec[hidden] { display: none !important; }
body .shopro-ec.shopro-ec-auth {
    display: block !important;
    width: min(100%, 450px) !important;
    max-width: 450px !important;
    float: none !important;
    margin: 12px auto 50px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible !important;
}
.shopro-ec .shopro-ec-brand { display: flex; justify-content: center; align-items: center; margin: 0 auto 22px; width: fit-content; text-decoration: none; }
.shopro-ec .shopro-ec-logo { display: block; width: auto; height: auto; max-width: 185px; max-height: 72px; object-fit: contain; }
.shopro-ec .shopro-ec-wordmark { font-size: 37px; font-weight: 850; line-height: 1.1; letter-spacing: -1.5px; color: var(--sec-blue); }
.shopro-ec .shopro-ec-card { width: 100%; padding: 30px; border: 1px solid var(--sec-line); border-radius: 14px; background: #fff; box-shadow: 0 6px 24px rgba(15, 34, 64, .045); }
body .shopro-ec h2 { color: var(--sec-ink); font-size: 28px; font-weight: 650; line-height: 1.25; letter-spacing: -.025em; text-transform: none; padding: 0; border: 0; margin: 0 0 10px; }
body .shopro-ec .shopro-ec-subtitle { font-size: 14px; color: var(--sec-muted); line-height: 1.6; margin: 0 0 23px; }
body .shopro-ec form { display: block; float: none; width: 100%; padding: 0 !important; margin: 0 !important; border: 0 !important; background: transparent; box-shadow: none; }
body .shopro-ec .form-row { display: block; float: none; width: 100%; clear: both; margin: 0 0 18px !important; padding: 0; }
body .shopro-ec .form-row > label { display: block; font-size: 14px; font-weight: 650; line-height: 1.5; margin: 0 0 7px; color: var(--sec-ink); }
body.shopro-account-ui .shopro-ec.shopro-ec-auth input[type="text"],
body.shopro-account-ui .shopro-ec.shopro-ec-auth input[type="email"],
body.shopro-account-ui .shopro-ec.shopro-ec-auth input[type="password"],
body .shopro-ec .form-row input[type="text"],
body .shopro-ec .form-row input[type="email"],
body .shopro-ec .form-row input[type="password"] {
    display: block; width: 100% !important; min-width: 0; height: auto; min-height: 48px;
    border: 1px solid #9daabd !important; border-radius: 8px !important; background: #fff !important;
    padding: 11px 13px; color: var(--sec-ink) !important; font: inherit; font-size: 16px; line-height: 1.4;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .02) !important;
}
body .shopro-ec .form-row input:focus-visible { outline: 2px solid var(--sec-blue) !important; outline-offset: 2px; }
body .shopro-ec a:focus-visible, body .shopro-ec button:focus-visible, body .shopro-ec input[type="checkbox"]:focus-visible { outline: 2px solid var(--sec-blue) !important; outline-offset: 3px; }
body .shopro-ec .password-input { display: block; position: relative; width: 100%; }
body .shopro-ec .password-input input { padding-right: 48px !important; }
body .shopro-ec .shopro-ec-button {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
    float: none !important; width: auto; min-height: 46px; height: auto;
    padding: 11px 18px !important; border: 1px solid var(--sec-yellow) !important; border-radius: 8px !important;
    color: var(--sec-blue) !important; background: var(--sec-yellow) !important;
    text-align: center; text-decoration: none !important; text-transform: none !important;
    font: inherit; font-size: 14px; font-weight: 750; line-height: 1.45; letter-spacing: 0 !important;
    box-shadow: none !important; cursor: pointer; margin: 0;
}
body .shopro-ec .shopro-ec-button:hover { filter: brightness(.97); }
body .shopro-ec .shopro-ec-button:disabled { opacity: .55; cursor: not-allowed; }
body .shopro-ec .shopro-ec-button--light { border-color: #b9c4d4 !important; background: #fff !important; color: var(--sec-blue) !important; }
body .shopro-ec-auth .shopro-ec-button { width: 100% !important; }
.shopro-ec .shopro-ec-divider { display: flex; align-items: center; gap: 12px; color: var(--sec-muted); font-size: 12px; margin: 24px 0 15px; }
.shopro-ec .shopro-ec-divider::before, .shopro-ec .shopro-ec-divider::after { content: ""; flex: 1; height: 1px; background: var(--sec-line); }
.shopro-ec .shopro-ec-remember-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; font-size: 12px; }
body .shopro-ec .shopro-ec-remember-row label { display: inline-flex !important; align-items: center; gap: 6px; font-size: 12px; font-weight: 400; margin: 0; }
body .shopro-ec input[type="checkbox"] { width: 16px !important; height: 16px !important; min-height: 16px !important; margin: 0 !important; flex: 0 0 auto; accent-color: var(--sec-blue); }
body .shopro-ec a:not(.shopro-ec-button) { color: var(--sec-blue); }
body .shopro-ec .shopro-ec-note { padding: 12px 13px; margin: 0 0 18px; border-radius: 8px; background: #f4f6fa; color: var(--sec-muted); font-size: 13px; }
body .shopro-ec .woocommerce-privacy-policy-text { margin-bottom: 18px; }
body .shopro-ec .woocommerce-privacy-policy-text p { font-size: 12px; line-height: 1.6; color: var(--sec-muted); }
.shopro-ec .shopro-ec-guest-option { text-align: center; padding: 22px 8px 0; }
.shopro-ec .shopro-ec-guest-option > span { display: block; margin-bottom: 5px; font-size: 13px; color: var(--sec-muted); }
.shopro-ec .shopro-ec-guest-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.shopro-ec .shopro-ec-fine-print { text-align: center; font-size: 12px; color: var(--sec-muted); margin: 17px 0 0; }
.shopro-ec .shopro-ec-switch-copy { text-align: center; font-size: 13px; margin: 20px 0 0; }
.shopro-ec .shopro-ec-identity-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 18px; font-size: 13px; }
.shopro-ec [data-shopro-identity-text] { overflow-wrap: anywhere; }
body .shopro-ec .shopro-ec-text-button { display: inline-block; padding: 4px 0 !important; min-height: 30px; height: auto; border: 0 !important; background: transparent !important; color: var(--sec-blue) !important; font: inherit; font-size: 13px; font-weight: 650; text-transform: none; letter-spacing: normal; text-decoration: underline; text-underline-offset: 3px; box-shadow: none; cursor: pointer; }
body .shopro-ec-checkout-panel { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; width: 100%; padding: 22px 24px; border: 1px solid var(--sec-line); border-left: 4px solid var(--sec-blue); border-radius: 12px; margin: 0 0 24px; background: #f8faff; }
.shopro-ec .shopro-ec-panel-copy { flex: 1 1 320px; }
body .shopro-ec-checkout-panel h2 { font-size: 21px; margin-bottom: 6px; }
body .shopro-ec-checkout-panel p { font-size: 14px; color: var(--sec-muted); margin: 0; }
.shopro-ec .shopro-ec-eyebrow { display: block; color: var(--sec-blue); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.shopro-ec .shopro-ec-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shopro-ec .shopro-ec-address-shortcuts { display: flex; gap: 6px 18px; align-items: center; flex-wrap: wrap; width: 100%; padding-top: 12px; border-top: 1px solid var(--sec-line); font-size: 12px; }
.shopro-ec .shopro-ec-status { flex-basis: 100%; color: var(--sec-muted); font-size: 12px; }
.shopro-ec .shopro-ec-status:empty { display: none; }
body .shopro-ec-after-order { max-width: 650px; background: #fff; border: 1px solid var(--sec-line); border-top: 4px solid var(--sec-blue); border-radius: 12px; padding: 25px; margin: 30px 0; }
body .shopro-ec-after-order h2 { font-size: 23px; }
body .shopro-ec-after-order p { font-size: 14px; }
.shopro-ec .shopro-ec-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.6; }
.shopro-ec .shopro-ec-consent input { margin-top: 3px !important; }
@media (max-width: 560px) {
    body .shopro-ec.shopro-ec-auth { margin-top: 0 !important; }
    .shopro-ec .shopro-ec-card { padding: 24px 20px; }
    body .shopro-ec h2 { font-size: 26px; }
    body .shopro-ec-checkout-panel { padding: 18px; gap: 15px; }
    body .shopro-ec-checkout-panel h2 { font-size: 20px; }
    .shopro-ec .shopro-ec-panel-copy { flex-basis: 100%; }
    .shopro-ec .shopro-ec-actions { width: 100%; }
    .shopro-ec .shopro-ec-actions .shopro-ec-button { flex: 1; }
    body .shopro-ec-after-order { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .shopro-ec * { scroll-behavior: auto !important; } }

/* v1.1 registration + customer profile */
body .shopro-ec .form-row input[type="tel"],
body .shopro-ec .form-row select,
body .shopro-ec-registration-details input[type="tel"],
body .shopro-ec-registration-details select,
body .shopro-ec-profile-editor input[type="tel"],
body .shopro-ec-profile-editor select {
    display: block; width: 100% !important; min-width: 0; min-height: 48px;
    border: 1px solid #9daabd !important; border-radius: 8px !important; background: #fff !important;
    padding: 11px 13px; color: var(--sec-ink) !important; font: inherit; font-size: 16px; line-height: 1.4;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .02) !important;
}
.shopro-ec-registration-details { margin: 0 0 22px; padding: 18px; border: 1px solid var(--sec-line); border-radius: 10px; background: #f8faff; }
body .shopro-ec .shopro-ec-registration-details h3,
body .shopro-ec-profile-editor h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.35; color: var(--sec-ink); }
body .shopro-ec .shopro-ec-help,
body .shopro-ec-profile-editor .shopro-ec-help { margin: 0 0 16px; font-size: 13px; line-height: 1.55; color: var(--sec-muted); }
body .shopro-ec .shopro-ec-help--compact { margin: 2px 0 0; }
.shopro-ec-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.shopro-ec-field-grid .form-row { grid-column: 1 / -1; }
.shopro-ec-field-grid #billing_first_name_field,
.shopro-ec-field-grid #billing_last_name_field { grid-column: auto; }
.shopro-ec .shopro-ec-field-hint { display: block; margin-top: 5px; font-size: 12px; color: var(--sec-muted); }
body .shopro-ec-profile-card { display: flex; align-items: center; gap: 18px; width: 100%; margin: 0 0 26px; padding: 20px; border: 1px solid var(--sec-line); border-radius: 12px; background: #fff; }
.shopro-ec-profile-card__avatar img,
.shopro-ec-profile-photo img { display: block; border-radius: 50%; object-fit: cover; }
.shopro-ec-profile-card__body { flex: 1 1 auto; min-width: 0; }
body .shopro-ec-profile-card h2 { margin: 0 0 2px; font-size: 20px; }
body .shopro-ec-profile-card p { margin: 0; font-size: 13px; color: var(--sec-muted); overflow-wrap: anywhere; }
body .shopro-ec-profile-card .shopro-ec-profile-status { margin-top: 7px; font-weight: 650; color: #8a4b00; }
body .shopro-ec-profile-card .shopro-ec-profile-status--complete { color: #176b37; }
.shopro-ec-profile-card__action { flex: 0 0 auto; }
body .woocommerce-MyAccount-content .shopro-ec-profile-editor { box-sizing: border-box; width: 100%; margin: 0 0 24px; padding: 20px; border: 1px solid var(--sec-line); border-radius: 12px; background: #fff; color: var(--sec-ink); }
body .woocommerce-MyAccount-content .shopro-ec-profile-editor--photo { display: flex; align-items: center; gap: 18px; }
body .woocommerce-MyAccount-content .shopro-ec-profile-photo { flex: 0 0 auto; }
body .woocommerce-MyAccount-content .shopro-ec-file-label { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 12px; margin-right: 8px; border: 1px solid #b9c4d4; border-radius: 7px; color: var(--sec-blue); background: #fff; font-weight: 650; cursor: pointer; }
body .woocommerce-MyAccount-content #shopro_ec_avatar { max-width: 100%; font-size: 13px; }
body .woocommerce-MyAccount-content .shopro-ec-remove-photo { display: block; margin-top: 10px; font-size: 13px; }
body .woocommerce-MyAccount-content .shopro-ec-profile-editor .form-row { margin-bottom: 16px !important; }
body .woocommerce-MyAccount-content .shopro-ec-profile-editor label { font-weight: 650; }
body .woocommerce-MyAccount-content .shopro-ec-profile-editor input[type="text"],
body .woocommerce-MyAccount-content .shopro-ec-profile-editor input[type="tel"],
body .woocommerce-MyAccount-content .shopro-ec-profile-editor select { width: 100% !important; min-height: 46px; border: 1px solid #9daabd !important; border-radius: 8px !important; padding: 10px 12px; background: #fff !important; }
@media (max-width: 640px) {
    .shopro-ec-field-grid { grid-template-columns: 1fr; }
    .shopro-ec-field-grid #billing_first_name_field,
    .shopro-ec-field-grid #billing_last_name_field { grid-column: 1 / -1; }
    body .shopro-ec-profile-card { align-items: flex-start; flex-wrap: wrap; }
    .shopro-ec-profile-card__action { width: 100%; }
    .shopro-ec-profile-card__action .shopro-ec-button { width: 100% !important; }
    body .woocommerce-MyAccount-content .shopro-ec-profile-editor--photo { align-items: flex-start; }
}
