/* WooCommerce Integration Pro UI
 * Visual language based on the original custom cart/checkout:
 * blue = action/information, green = success/total, soft gray = surfaces.
 */
:root {
    --wcip-primary: #007bff;
    --wcip-primary-dark: #0056b3;
    --wcip-success: #00b894;
    --wcip-success-strong: #00c853;
    --wcip-success-dark: #009624;
    --wcip-danger: #e02b2b;
    --wcip-bg: #f4f6f8;
    --wcip-surface: #ffffff;
    --wcip-surface-soft: #f8fbff;
    --wcip-surface-muted: #f1f3f5;
    --wcip-text: #2c3e50;
    --wcip-text-body: #333333;
    --wcip-muted: #7f8c8d;
    --wcip-border: #e0e6ed;
    --wcip-border-soft: #eeeeee;
    --wcip-radius-sm: 6px;
    --wcip-radius-md: 8px;
    --wcip-radius-lg: 12px;
    --wcip-shadow-card: 0 5px 20px rgba(0,0,0,.05);
    --wcip-shadow-soft: 0 4px 12px rgba(0,0,0,.03);
}

.wcip-checkout-wrap,
.wcip-cart-wrap {
    width: 100%;
    box-sizing: border-box;
    background: var(--wcip-bg);
    color: var(--wcip-text-body);
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    padding: 40px 20px;
}

.wcip-checkout-wrap *,
.wcip-cart-wrap * { box-sizing: border-box; }

.wcip-checkout-wrap a,
.wcip-cart-wrap a { transition: color .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease; }

.wcip-checkout-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(300px,1fr);
    gap: 30px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

.wcip-column { min-width: 0; }

/* Shared card */
.wcip-card {
    position: relative;
    margin: 0 0 20px;
    padding: 25px;
    background: var(--wcip-surface);
    border: 1px solid rgba(224,230,237,.55);
    border-radius: var(--wcip-radius-lg);
    box-shadow: var(--wcip-shadow-card);
}

.wcip-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.wcip-card-header h3 {
    margin: 0;
    color: var(--wcip-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.wcip-card-header p {
    margin: 3px 0 0;
    color: var(--wcip-muted);
    font-size: 12px;
    line-height: 1.35;
}

.wcip-ok,
.wcip-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    background: var(--wcip-success-strong);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 3px 8px rgba(0,200,83,.14);
}

.wcip-step {
    background: var(--wcip-primary);
    box-shadow: 0 3px 8px rgba(0,123,255,.14);
}

/* Forms */
.wcip-field { position: relative; margin-bottom: 12px; }
.wcip-field > label,
.wcip-cart-shipping-form > label {
    display: block;
    margin: 0 0 5px;
    color: #555;
    font-size: 12px;
    font-weight: 600;
}

.wcip-field input[type="text"],
.wcip-field input[type="email"],
.wcip-field input[type="tel"],
.wcip-field input[type="number"],
.wcip-field select,
.wcip-cart-shipping-form input,
.wcip-coupon input,
.wcip-payment-box input[type="text"],
.wcip-payment-box input[type="tel"],
.wcip-payment-box input[type="email"],
.wcip-payment-box input[type="number"],
.wcip-payment-box select,
.wcip-payment-box textarea {
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid #e0e0e0;
    border-radius: var(--wcip-radius-sm);
    outline: 0;
    background: #fcfcfc;
    color: var(--wcip-text-body);
    box-shadow: none;
    font: inherit;
    font-size: 13px;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.wcip-field input:focus,
.wcip-field select:focus,
.wcip-cart-shipping-form input:focus,
.wcip-coupon input:focus,
.wcip-payment-box input:focus,
.wcip-payment-box select:focus,
.wcip-payment-box textarea:focus {
    border-color: var(--wcip-primary);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0,123,255,.1);
}

.wcip-two { display: flex; gap: 15px; }
.wcip-two > .wcip-field { flex: 1 1 0; min-width: 0; }
.wcip-number { flex: 0 0 105px !important; }
.wcip-state { flex: 0 0 80px !important; }
.wcip-inline { display: flex; align-items: stretch; gap: 8px; }
.wcip-inline input { min-width: 0; flex: 1 1 auto; }

.wcip-radio-line { display: flex; flex-wrap: wrap; gap: 18px; }
.wcip-radio-line label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #444;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
}
.wcip-radio-line input,
.wcip-shipping-option input,
.wcip-cart-rates input,
.wcip-payment-input { accent-color: var(--wcip-primary); }
.wcip-hidden { display: none !important; }
#wcip-postcode-status,
#wcip-cart-postcode-status { display: block; min-height: 15px; margin-top: 4px; color: #68737e; font-size: 11px; }

/* Secondary actions */
#wcip-find-postcode,
.wcip-cart-shipping-form .button,
.wcip-coupon .button {
    min-height: 40px;
    padding: 8px 14px !important;
    border: 1px solid var(--wcip-primary) !important;
    border-radius: var(--wcip-radius-sm) !important;
    background: #fff !important;
    color: var(--wcip-primary) !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-shadow: none !important;
    cursor: pointer;
}
#wcip-find-postcode:hover,
.wcip-cart-shipping-form .button:hover,
.wcip-coupon .button:hover {
    background: var(--wcip-primary) !important;
    color: #fff !important;
}

/* Shipping */
.wcip-shipping-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #f0f0f0;
}
.wcip-shipping-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--wcip-text);
    font-size: 15px;
    font-weight: 700;
}
.wcip-shipping-section h4::before {
    content: "";
    width: 8px;
    height: 8px;
    border: 2px solid var(--wcip-primary);
    border-radius: 2px;
    box-shadow: 5px 5px 0 -3px var(--wcip-primary);
    transform: rotate(0deg);
}
.wcip-shipping-list ul,
.wcip-cart-rates,
.wcip-payment .payment_methods { margin: 0; padding: 0; list-style: none; }

.wcip-shipping-option,
.wcip-cart-rates li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 8px;
    padding: 10px 11px;
    border: 1px solid #e7e9ec;
    border-radius: 7px;
    background: #fff;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.wcip-shipping-option:hover,
.wcip-cart-rates li:hover,
.wcip-shipping-option.is-selected,
.wcip-cart-rates li.is-selected,
.wcip-shipping-option:has(input:checked),
.wcip-cart-rates li:has(input:checked) {
    border-color: #b9d9ff;
    background: var(--wcip-surface-soft);
}
.wcip-shipping-option input,
.wcip-cart-rates input { flex: 0 0 auto; margin: 3px 0 0; }
.wcip-shipping-option label,
.wcip-cart-rates label {
    display: block;
    flex: 1;
    margin: 0;
    color: #444;
    font-size: 13px;
    line-height: 1.35;
    cursor: pointer;
}
.wcip-muted { color: var(--wcip-muted); font-size: 12px; }

/* Payment: preserve gateway HTML, only skin the container */
.wcip-payment { background: transparent !important; }
.wcip-payment .wc_payment_method { position: relative; margin: 0 0 8px; padding: 0; list-style: none; }
.wcip-payment-input {
    position: absolute;
    z-index: 3;
    top: 18px;
    left: 15px;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
}
.wcip-payment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 14px 14px 14px 44px;
    border: 1px solid #eee;
    border-radius: var(--wcip-radius-md);
    background: #fff;
    color: var(--wcip-text-body);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.wcip-payment-row:hover { border-color: var(--wcip-primary); }
.wcip-payment-row.active {
    border-color: var(--wcip-primary);
    background: var(--wcip-surface-soft);
    box-shadow: 0 0 0 1px rgba(0,123,255,.02);
}
.wcip-payment-name { font-size: 14px; font-weight: 600; }
.wcip-payment-row img { max-height: 25px; width: auto; }
.wcip-payment-box {
    position: relative;
    margin: -9px 0 15px;
    padding: 22px 20px 20px;
    border: 1px solid var(--wcip-primary);
    border-top: 0;
    border-radius: 0 0 var(--wcip-radius-md) var(--wcip-radius-md);
    background: #fff;
    color: #5d6570;
    font-size: 13px;
}
.wcip-payment-box::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 34px;
    width: 14px;
    height: 14px;
    border-top: 1px solid var(--wcip-primary);
    border-left: 1px solid var(--wcip-primary);
    background: #fff;
    transform: rotate(45deg);
}
.wcip-payment-box p { margin-top: 0; }
.wcip-payment-box label { color: #5a6068; font-size: 12px; }
.wcip-payment-box .form-row { margin-bottom: 12px; }
.wcip-payment-box fieldset { margin: 0; padding: 0; border: 0; }
.wcip-payment-box select { max-width: 100%; }
.wcip-payment .place-order {
    margin-top: 18px;
    padding: 18px 0 0 !important;
    border-top: 1px solid #eee;
    background: transparent !important;
}
.wcip-payment .woocommerce-privacy-policy-text,
.wcip-payment .woocommerce-terms-and-conditions-wrapper { color: #646d77; font-size: 12px; line-height: 1.55; }
.wcip-payment .woocommerce-privacy-policy-link { color: var(--wcip-primary); }
.wcip-place-order,
.wcip-checkout-button {
    width: 100%;
    min-height: 52px;
    margin: 10px 0 0 !important;
    padding: 15px 18px !important;
    border: 0 !important;
    border-radius: var(--wcip-radius-sm) !important;
    background: var(--wcip-success-strong) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(0,200,83,.18) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-shadow: none !important;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.wcip-place-order:hover,
.wcip-checkout-button:hover {
    background: var(--wcip-success-dark) !important;
    transform: translateY(-1px);
}
.wcip-place-order:disabled { background: #ccc !important; box-shadow: none !important; cursor: not-allowed; transform: none; }

/* Checkout summary */
.wcip-summary { position: sticky; top: 20px; overflow: hidden; }
.wcip-summary-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
    color: var(--wcip-primary);
    font-size: 14px;
    font-weight: 700;
}
.wcip-summary-title::before {
    content: "▣";
    color: var(--wcip-primary);
    font-size: 15px;
    line-height: 1;
}
.wcip-summary-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 0;
    color: #555;
    font-size: 13px;
}
.wcip-summary-row strong { color: #40464d; font-weight: 600; text-align: right; }
.wcip-summary-meta { display: block; margin-top: 2px; color: #999; font-size: 11px; font-weight: 400; text-align: right; }
.wcip-products { margin: 1px 0 7px; font-size: 12px; }
.wcip-products summary { width: fit-content; color: var(--wcip-primary); cursor: pointer; list-style: none; }
.wcip-products summary::-webkit-details-marker { display: none; }
.wcip-products summary::after { content: "⌄"; display: inline-block; margin-left: 4px; font-weight: 700; transition: transform .18s ease; }
.wcip-products[open] summary::after { transform: rotate(180deg); }
.wcip-products-body { margin-top: 8px; padding: 7px 10px; border-radius: var(--wcip-radius-sm); background: #f9f9f9; }
.wcip-product-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #eee; color: #555; }
.wcip-product-row:last-child { border-bottom: 0; }
.wcip-product-row span:last-child { flex: 0 0 auto; font-weight: 600; }
.wcip-total {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2px 14px;
    margin-top: 15px;
    padding: 15px;
    border-radius: var(--wcip-radius-sm);
    background: var(--wcip-surface-muted);
}
.wcip-total > span { color: #333; font-size: 15px; font-weight: 700; }
.wcip-total > strong { color: var(--wcip-success-strong); font-size: 20px; font-weight: 800; text-align: right; }
.wcip-total > strong .woocommerce-Price-amount { color: inherit; }
.wcip-total > small { grid-column: 1 / 3; color: #999; font-size: 11px; text-align: right; }
.wcip-trust-row { display: flex; justify-content: center; gap: 18px; margin-top: 20px; color: #c7ccd1; font-size: 18px; }

/* Cart */
.wcip-cart-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) 350px;
    gap: 30px;
    align-items: start;
    max-width: 1240px;
    margin: 0 auto;
}
.wcip-cart-items { min-width: 0; }
.wcip-cart-item {
    position: relative;
    display: grid;
    grid-template-columns: 90px minmax(0,1fr) 118px 105px;
    gap: 20px;
    align-items: center;
    margin: 0 0 28px;
    padding: 20px;
    border: 1px solid #f0f0f0;
    border-radius: var(--wcip-radius-md);
    background: #fff;
    box-shadow: var(--wcip-shadow-soft);
    transition: box-shadow .2s ease, transform .2s ease;
}
.wcip-cart-item:hover { box-shadow: 0 6px 16px rgba(0,0,0,.06); }
.wcip-cart-image { min-width: 0; }
.wcip-cart-image a { display: block; }
.wcip-cart-image img { display: block; width: 90px; max-width: 100%; height: auto; border-radius: var(--wcip-radius-sm); }
.wcip-cart-label {
    display: block;
    margin-bottom: 8px;
    color: #999;
    font-size: 11px;
    letter-spacing: .45px;
    line-height: 1;
    text-transform: uppercase;
}
.wcip-cart-info { min-width: 0; }
.wcip-cart-info h3 { margin: 0 0 5px; color: #333; font-size: 15px; font-weight: 600; line-height: 1.4; }
.wcip-cart-info h3 a { color: inherit; text-decoration: none; }
.wcip-cart-info h3 a:hover { color: #0073aa; }
.wcip-cart-info .variation,
.wcip-cart-info .wc-item-meta { margin: 6px 0 0; color: #666; font-size: 12px; }
.wcip-cart-stock { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: var(--wcip-danger); font-size: 12px; font-weight: 500; }
.wcip-cart-qty-col { text-align: center; }
.wcip-qty { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid #ddd; border-radius: 4px; background: #f9f9f9; }
.wcip-qty button,
.wcip-qty input {
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #555;
    box-shadow: none;
    font-size: 15px;
    line-height: 32px;
    text-align: center;
}
.wcip-qty button { cursor: pointer; }
.wcip-qty button:hover { background: #f0f0f0; }
.wcip-qty input { width: 42px; border-right: 1px solid #eee; border-left: 1px solid #eee; font-size: 13px; font-weight: 600; pointer-events: none; appearance: textfield; }
.wcip-qty input::-webkit-inner-spin-button,
.wcip-qty input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.wcip-cart-price { color: var(--wcip-success); font-size: 16px; font-weight: 700; text-align: right; }
.wcip-cart-price .woocommerce-Price-amount { color: inherit; }
.wcip-remove {
    position: absolute;
    right: 13px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #ff6b6b !important;
    font-size: 23px;
    line-height: 1;
    text-decoration: none !important;
}
.wcip-remove:hover { background: #fff0f0; color: var(--wcip-danger) !important; }

.wcip-cart-summary {
    position: sticky;
    top: 20px;
    margin-bottom: 0;
    border-radius: var(--wcip-radius-md);
}
.wcip-cart-summary .wcip-summary-title { margin-bottom: 11px; }
.wcip-cart-summary .wcip-summary-row { padding: 7px 0; }
.wcip-cart-summary-divider { height: 1px; margin: 12px 0; background: #eee; }
.wcip-cart-shipping-form { margin-top: 6px; padding: 14px 0; border-top: 1px solid #eee; }
.wcip-cart-shipping-form .wcip-inline { margin-top: 5px; }
.wcip-coupon { display: flex; gap: 8px; margin-top: 12px; padding-top: 14px; border-top: 1px solid #eee; }
.wcip-coupon input { min-width: 0; flex: 1 1 auto; }
.wcip-cart-summary .wcip-total { margin-top: 15px; padding: 18px 16px; }
.wcip-cart-summary .wcip-total > strong { font-size: 21px; }

/* WooCommerce notices inside our surface */
.wcip-checkout-wrap .woocommerce-error,
.wcip-checkout-wrap .woocommerce-info,
.wcip-checkout-wrap .woocommerce-message,
.wcip-cart-wrap .woocommerce-error,
.wcip-cart-wrap .woocommerce-info,
.wcip-cart-wrap .woocommerce-message {
    border-radius: var(--wcip-radius-md);
    font-size: 13px;
}

@media (max-width: 1050px) {
    .wcip-checkout-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
    .wcip-checkout-grid > .wcip-column:last-child { grid-column: 1 / 3; }
    .wcip-summary { position: static; }
}

@media (max-width: 980px) {
    .wcip-cart-grid { grid-template-columns: 1fr; }
    .wcip-cart-summary { position: static; }
}

@media (max-width: 820px) {
    .wcip-checkout-grid { grid-template-columns: 1fr; }
    .wcip-checkout-grid > .wcip-column:last-child { grid-column: auto; }
}

@media (max-width: 680px) {
    .wcip-checkout-wrap,
    .wcip-cart-wrap { padding: 22px 10px; }
    .wcip-card { padding: 19px; }
    .wcip-two { display: block; }
    .wcip-number,
    .wcip-state { max-width: none; }
    .wcip-cart-item {
        grid-template-columns: 72px minmax(0,1fr);
        gap: 14px;
        padding: 17px 17px 67px;
    }
    .wcip-cart-image img { width: 72px; }
    .wcip-cart-label { display: none; }
    .wcip-cart-qty-col { position: absolute; bottom: 18px; left: 103px; text-align: left; }
    .wcip-cart-price-col { position: absolute; right: 52px; bottom: 22px; }
    .wcip-cart-price { font-size: 15px; }
    .wcip-remove { right: 14px; bottom: 14px; }
}

/* Order Pay / Retomar pagamento */
.wcip-order-pay-page .woocommerce-notices-wrapper,
.wcip-order-pay-page .woocommerce-error,
.wcip-order-pay-page .woocommerce-info,
.wcip-order-pay-page .woocommerce-message { max-width: 1400px; margin-left: auto; margin-right: auto; }

.wcip-order-pay-wrap {
    width: 100%;
    padding: 34px 20px 40px;
    background: var(--wcip-bg);
    color: var(--wcip-text-body);
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}
.wcip-order-pay-wrap * { box-sizing: border-box; }
.wcip-order-pay-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 1400px;
    margin: 0 auto 18px;
    padding: 0 2px;
}
.wcip-order-pay-heading h2 { margin: 0; color: var(--wcip-text); font-size: 21px; line-height: 1.2; }
.wcip-order-pay-heading p { margin: 4px 0 0; color: var(--wcip-muted); font-size: 13px; }
.wcip-order-pay-grid { max-width: 1400px; }
.wcip-order-pay-form { margin: 0; }
.wcip-order-pay-readonly { overflow: hidden; }
.wcip-readonly-box {
    padding: 13px 14px;
    border: 1px solid #e1eaf3;
    border-radius: var(--wcip-radius-md);
    background: var(--wcip-surface-soft);
}
.wcip-readonly-line {
    display: grid;
    grid-template-columns: minmax(90px,.8fr) minmax(0,1.4fr);
    gap: 12px;
    padding: 5px 0;
    color: #626a73;
    font-size: 12px;
}
.wcip-readonly-line span { color: #7b838c; }
.wcip-readonly-line strong { color: #333; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.wcip-readonly-address { display: grid; gap: 4px; color: #606971; font-size: 12px; line-height: 1.45; }
.wcip-readonly-address strong { color: #333; font-size: 13px; }
.wcip-order-pay-shipping {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
    padding: 13px 14px;
    border-top: 1px solid #eef0f2;
    border-radius: var(--wcip-radius-md);
    background: #fff;
}
.wcip-order-pay-shipping > span { display: grid; gap: 2px; }
.wcip-order-pay-shipping small { color: var(--wcip-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .35px; }
.wcip-order-pay-shipping strong { color: #3c4249; font-size: 13px; }
.wcip-order-pay-shipping > strong { color: var(--wcip-success-strong); font-size: 14px; white-space: nowrap; }

/* Native Woo payment-method.php markup, skinned without taking over gateway logic. */
.wcip-order-pay-payment { background: transparent !important; }
.wcip-order-pay-payment .payment_methods {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.wcip-order-pay-payment .wc_payment_method {
    position: relative;
    margin: 0 !important;
    padding: 0;
    list-style: none;
}
.wcip-order-pay-payment .wc_payment_method > input.input-radio {
    position: absolute;
    z-index: 3;
    top: 19px;
    left: 15px;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    accent-color: var(--wcip-primary);
}
.wcip-order-pay-payment .wc_payment_method > label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 54px;
    margin: 0 !important;
    padding: 14px 14px 14px 44px;
    border: 1px solid #eee;
    border-radius: var(--wcip-radius-md);
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, border-radius .2s ease;
}
.wcip-order-pay-payment .wc_payment_method > label:hover,
.wcip-order-pay-payment .wc_payment_method > label.active {
    border-color: var(--wcip-primary);
    background: var(--wcip-surface-soft);
}
.wcip-order-pay-payment .wc_payment_method.wcip-is-open > label.active {
    border-bottom-color: transparent;
    border-radius: var(--wcip-radius-md) var(--wcip-radius-md) 0 0;
}
.wcip-order-pay-payment .wc_payment_method > label img {
    max-width: 90px;
    max-height: 25px;
    width: auto;
    height: auto;
}
.wcip-order-pay-payment .payment_box {
    position: relative;
    margin: -1px 0 0 !important;
    padding: 20px !important;
    border: 1px solid var(--wcip-primary);
    border-top: 1px solid #d9e9ff;
    border-radius: 0 0 var(--wcip-radius-md) var(--wcip-radius-md);
    background: #fff !important;
    color: #5d6570;
    font-size: 13px;
    box-shadow: none !important;
}
/* WooCommerce/themes commonly draw a speech-bubble arrow on payment_box.
 * WCIP uses a continuous card, so remove those pseudo-elements entirely. */
.wcip-order-pay-payment .payment_box::before,
.wcip-order-pay-payment .payment_box::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
}
.wcip-order-pay-payment .payment_box input[type="text"],
.wcip-order-pay-payment .payment_box input[type="tel"],
.wcip-order-pay-payment .payment_box input[type="email"],
.wcip-order-pay-payment .payment_box input[type="number"],
.wcip-order-pay-payment .payment_box input[type="password"],
.wcip-order-pay-payment .payment_box select,
.wcip-order-pay-payment .payment_box textarea {
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 9px 11px;
    border: 1px solid #e0e0e0;
    border-radius: var(--wcip-radius-sm);
    outline: 0;
    background: #fcfcfc;
    color: #333;
    box-shadow: none;
    font-size: 13px;
}
.wcip-order-pay-payment .payment_box input:focus,
.wcip-order-pay-payment .payment_box select:focus,
.wcip-order-pay-payment .payment_box textarea:focus {
    border-color: var(--wcip-primary);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0,123,255,.1);
}
.wcip-order-pay-payment .payment_box fieldset { margin: 0; padding: 0; border: 0; }
.wcip-order-pay-payment .payment_box .form-row { margin-bottom: 12px; }
.wcip-order-pay-payment .payment_box label { color: #5a6068; font-size: 12px; }
.wcip-order-pay-payment .place-order {
    margin-top: 18px;
    padding: 18px 0 0 !important;
    border-top: 1px solid #eee;
    background: transparent !important;
}
.wcip-order-pay-payment .woocommerce-privacy-policy-text,
.wcip-order-pay-payment .woocommerce-terms-and-conditions-wrapper { color: #646d77; font-size: 12px; line-height: 1.55; }
.wcip-order-pay-payment .woocommerce-privacy-policy-link { color: var(--wcip-primary); }

.wcip-order-pay-number {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -2px 0 7px;
    padding: 9px 10px;
    border-radius: var(--wcip-radius-sm);
    background: #f8fbff;
    color: #69727b;
    font-size: 11px;
}
.wcip-order-pay-number strong { color: var(--wcip-primary); font-size: 12px; }
.wcip-order-pay-discount strong { color: var(--wcip-success-strong); }
.wcip-order-pay-lock {
    margin-top: 12px;
    padding: 10px 11px;
    border-radius: var(--wcip-radius-sm);
    background: #f8f9fa;
    color: #7a828a;
    font-size: 10px;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 680px) {
    .wcip-order-pay-wrap { padding: 22px 10px 30px; }
    .wcip-order-pay-heading { align-items: flex-start; }
    .wcip-order-pay-heading h2 { font-size: 18px; }
    .wcip-readonly-line { grid-template-columns: 1fr; gap: 1px; }
    .wcip-readonly-line strong { text-align: left; }
}

/* Order Pay editor (v1.3) */
.wcip-card-header-actions {
    position: relative;
    padding-right: 58px;
}
.wcip-card-heading-copy { min-width: 0; flex: 1 1 auto; }
.wcip-text-action,
.wcip-inline-action {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--wcip-primary);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    padding: 4px 0;
}
.wcip-text-action {
    position: absolute;
    right: 0;
    top: 5px;
}
.wcip-text-action:hover,
.wcip-inline-action:hover { color: var(--wcip-primary-dark); text-decoration: underline; }

.wcip-order-pay-edit {
    padding-top: 2px;
}
.wcip-locked-value {
    display: grid;
    gap: 3px;
    padding: 10px 11px;
    border: 1px solid #e5e9ee;
    border-radius: var(--wcip-radius-sm);
    background: #f7f8fa;
    color: #4c555e;
    font-size: 13px;
}
.wcip-locked-value small { color: #8a9198; font-size: 10px; }

.wcip-editor-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eef0f2;
}
.wcip-button-primary,
.wcip-button-secondary,
.wcip-button-success {
    min-height: 39px;
    border-radius: var(--wcip-radius-sm);
    padding: 9px 14px;
    border: 1px solid transparent;
    box-shadow: none;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
    transition: opacity .18s ease, background .18s ease, border-color .18s ease;
}
.wcip-button-primary {
    background: var(--wcip-primary);
    border-color: var(--wcip-primary);
    color: #fff;
}
.wcip-button-primary:hover { background: var(--wcip-primary-dark); border-color: var(--wcip-primary-dark); }
.wcip-button-secondary {
    background: #fff;
    border-color: #dce2e8;
    color: #65707a;
}
.wcip-button-secondary:hover { border-color: #aeb7c0; color: #3f4850; }
.wcip-button-success {
    background: var(--wcip-success-strong);
    border-color: var(--wcip-success-strong);
    color: #fff;
}
.wcip-button-success:hover { background: var(--wcip-success-dark); border-color: var(--wcip-success-dark); }
.wcip-button-primary:disabled,
.wcip-button-secondary:disabled,
.wcip-button-success:disabled,
.wcip-button-primary.is-busy,
.wcip-button-secondary.is-busy,
.wcip-button-success.is-busy {
    opacity: .55;
    cursor: not-allowed;
}

.wcip-editor-message {
    display: none;
    margin-top: 12px;
    padding: 9px 10px;
    border-radius: var(--wcip-radius-sm);
    font-size: 11px;
    line-height: 1.4;
}
.wcip-editor-message.is-error { display: block; background: #fff2f2; color: #b42318; border: 1px solid #ffd1d1; }
.wcip-editor-message.is-success { display: block; background: #effbf4; color: #137a3b; border: 1px solid #c8efd7; }
.wcip-editor-message.is-info { display: block; background: #f0f7ff; color: #1769aa; border: 1px solid #cae4ff; }

.wcip-postcode-button {
    min-height: 40px !important;
    padding: 8px 14px !important;
    border: 1px solid var(--wcip-primary) !important;
    border-radius: var(--wcip-radius-sm) !important;
    background: #fff !important;
    color: var(--wcip-primary) !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}
.wcip-postcode-button:hover { background: var(--wcip-primary) !important; color: #fff !important; }
[data-wcip-postcode-status] { display: block; min-height: 15px; margin-top: 4px; color: #68737e; font-size: 11px; }
[data-wcip-postcode-status].is-error { color: var(--wcip-danger); }

.wcip-order-pay-shipping-side {
    display: grid;
    justify-items: end;
    gap: 2px;
}
.wcip-order-pay-shipping-side > strong { color: var(--wcip-success-strong); font-size: 14px; white-space: nowrap; }

.wcip-order-pay-rate-stage {
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid #eef0f2;
}
.wcip-rate-stage-heading {
    display: grid;
    gap: 2px;
    margin-bottom: 10px;
}
.wcip-rate-stage-heading strong { color: #333; font-size: 13px; }
.wcip-rate-stage-heading span { color: var(--wcip-muted); font-size: 10px; }
.wcip-quote-shipping { width: 100%; }
.wcip-order-pay-rates { margin-top: 11px; }
.wcip-order-pay-rate-list { display: grid; gap: 7px; }
.wcip-order-pay-rate-option {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid #e3e7eb;
    border-radius: var(--wcip-radius-sm);
    background: #fff;
    color: #3f464d;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}
.wcip-order-pay-rate-option:hover,
.wcip-order-pay-rate-option.is-selected {
    border-color: var(--wcip-primary);
    background: var(--wcip-surface-soft);
}
.wcip-order-pay-rate-option input { margin: 0; accent-color: var(--wcip-primary); }
.wcip-order-pay-rate-label { min-width: 0; font-size: 12px; line-height: 1.35; }
.wcip-order-pay-rate-option > strong { color: var(--wcip-success-strong); font-size: 12px; white-space: nowrap; }
.wcip-rate-hint { margin: 7px 0 0; color: #7f8790; font-size: 10px; }

@media (max-width: 680px) {
    .wcip-card-header-actions { padding-right: 48px; }
    .wcip-editor-actions { flex-direction: column-reverse; align-items: stretch; }
    .wcip-editor-actions button { width: 100%; }
    .wcip-order-pay-rate-option { grid-template-columns: auto minmax(0,1fr); }
    .wcip-order-pay-rate-option > strong { grid-column: 2; }
}
.wcip-order-pay-edit-note {
    margin: 10px 0 0;
    padding: 9px 10px;
    border-radius: var(--wcip-radius-sm);
    background: #fff8e8;
    border: 1px solid #f3deb1;
    color: #7a5a16;
    font-size: 10px;
    line-height: 1.45;
}

/* v1.3.5: canonical WooCommerce checkout-field rendering inside WCIP cards. */
.wcip-checkout-wrap .wcip-field .form-row,
.wcip-checkout-wrap .wcip-field p.form-row,
.wcip-checkout-wrap .wcip-native-field-row {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.wcip-checkout-wrap .wcip-field .woocommerce-input-wrapper,
.wcip-checkout-wrap .wcip-native-flex,
.wcip-checkout-wrap .wcip-native-flex .form-row {
    display: block;
    width: 100%;
    min-width: 0;
}

.wcip-checkout-wrap .wcip-field .form-row > label,
.wcip-checkout-wrap .wcip-native-field-row > label {
    display: block;
    margin: 0 0 5px !important;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.wcip-checkout-wrap .wcip-field .woocommerce-input-wrapper input.input-text,
.wcip-checkout-wrap .wcip-field .woocommerce-input-wrapper input[type="text"],
.wcip-checkout-wrap .wcip-field .woocommerce-input-wrapper input[type="email"],
.wcip-checkout-wrap .wcip-field .woocommerce-input-wrapper input[type="tel"],
.wcip-checkout-wrap .wcip-field .woocommerce-input-wrapper input[type="number"],
.wcip-checkout-wrap .wcip-field .woocommerce-input-wrapper select,
.wcip-checkout-wrap .wcip-native-input {
    width: 100% !important;
    min-height: 40px;
    margin: 0 !important;
    padding: 9px 11px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: var(--wcip-radius-sm) !important;
    outline: 0;
    background: #fcfcfc !important;
    color: var(--wcip-text-body) !important;
    box-shadow: none !important;
    font: inherit;
    font-size: 13px !important;
}

.wcip-checkout-wrap .wcip-field .woocommerce-input-wrapper input:focus,
.wcip-checkout-wrap .wcip-field .woocommerce-input-wrapper select:focus,
.wcip-checkout-wrap .wcip-native-input:focus {
    border-color: var(--wcip-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 2px rgba(0,123,255,.1) !important;
}

.wcip-checkout-wrap .wcip-person-type .woocommerce-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.wcip-checkout-wrap .wcip-person-type .woocommerce-input-wrapper input[type="radio"] {
    width: auto !important;
    min-height: 0;
    margin: 0 5px 0 0 !important;
    padding: 0 !important;
    accent-color: var(--wcip-primary);
}

.wcip-checkout-wrap .wcip-person-type .woocommerce-input-wrapper label {
    display: inline-flex;
    align-items: center;
    margin: 0 14px 0 0 !important;
    color: #444;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
}

.wcip-checkout-wrap .wcip-postcode-line {
    align-items: flex-end;
}
.wcip-checkout-wrap .wcip-postcode-line .wcip-native-flex {
    flex: 1 1 auto;
}
.wcip-checkout-wrap .wcip-postcode-line #wcip-find-postcode {
    flex: 0 0 auto;
}

.wcip-checkout-wrap .woocommerce-invalid .input-text,
.wcip-checkout-wrap .woocommerce-invalid select {
    border-color: var(--wcip-danger) !important;
}

/* v1.3.6 - Payment retry choices + clearer payment feedback */
.wcip-payment-choice-note {
    display: grid;
    gap: 3px;
    margin: 0 0 12px;
    padding: 11px 12px;
    border: 1px solid #dcecff;
    border-radius: var(--wcip-radius-md);
    background: #f7fbff;
    color: #56616c;
    font-size: 11px;
    line-height: 1.45;
}
.wcip-payment-choice-note strong {
    color: var(--wcip-primary);
    font-size: 12px;
}

.wcip-order-pay-page .woocommerce-error,
.wcip-checkout-wrap .woocommerce-error {
    list-style: none;
    border: 1px solid #ffd5d5 !important;
    border-left: 4px solid var(--wcip-danger) !important;
    border-radius: var(--wcip-radius-md) !important;
    background: #fff8f8 !important;
    box-shadow: 0 4px 16px rgba(180, 35, 35, .05);
    color: #5b3333 !important;
    padding: 13px 15px 13px 17px !important;
    line-height: 1.5;
}
.wcip-order-pay-page .woocommerce-error::before,
.wcip-checkout-wrap .woocommerce-error::before {
    color: var(--wcip-danger) !important;
}
.wcip-payment-feedback {
    display: inline;
}
.wcip-payment-feedback > strong {
    color: #9f1f1f;
}
.wcip-notice-action {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    color: var(--wcip-primary) !important;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}
.wcip-notice-action:hover {
    text-decoration: underline !important;
}

/* Make every recovered order-pay method feel independently selectable. */
.wcip-order-pay-payment .payment_methods > .wc_payment_method {
    width: 100%;
}
.wcip-order-pay-payment .payment_methods > .wc_payment_method > label {
    width: 100%;
}

/* v1.3.6.1 - Checkout visual polish: payment spacing + canonical State/UF select. */
.wcip-checkout-wrap .wcip-payment .payment_methods {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.wcip-checkout-wrap .wcip-payment .payment_methods > .wc_payment_method {
    width: 100%;
    margin: 0 !important;
    padding: 0;
}
.wcip-checkout-wrap .wcip-payment .wcip-payment-row {
    margin: 0 !important;
}
.wcip-checkout-wrap .wcip-payment .wc_payment_method.wcip-is-open > .wcip-payment-row.active {
    border-bottom-color: transparent;
    border-radius: var(--wcip-radius-md) var(--wcip-radius-md) 0 0;
}
.wcip-checkout-wrap .wcip-payment .wcip-payment-box {
    margin: -1px 0 0 !important;
    padding: 20px !important;
    border: 1px solid var(--wcip-primary);
    border-top: 1px solid #d9e9ff;
    border-radius: 0 0 var(--wcip-radius-md) var(--wcip-radius-md);
    box-shadow: none !important;
}
.wcip-checkout-wrap .wcip-payment .wcip-payment-box::before,
.wcip-checkout-wrap .wcip-payment .wcip-payment-box::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
}
.wcip-checkout-wrap .wcip-payment .wcip-payment-box .form-row:last-child {
    margin-bottom: 0;
}

/* Keep the same rhythm on Retomar pagamento. */
.wcip-order-pay-payment .payment_methods {
    gap: 12px;
}

/* Cidade + UF: reserve enough room for the visible state selector. */
.wcip-checkout-wrap .wcip-city-state-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 15px;
    align-items: start;
}
.wcip-checkout-wrap .wcip-city-state-row > .wcip-field {
    min-width: 0;
}
.wcip-checkout-wrap .wcip-city-state-row .wcip-state {
    width: auto;
    min-width: 0;
    max-width: none;
    flex: none !important;
}
.wcip-checkout-wrap .wcip-state .woocommerce-input-wrapper {
    display: block;
    width: 100%;
    min-width: 0;
}
.wcip-checkout-wrap .wcip-state select,
.wcip-checkout-wrap .wcip-state select.state_select,
.wcip-checkout-wrap .wcip-state .wcip-native-input {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 9px 30px 9px 11px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: var(--wcip-radius-sm) !important;
    background: #fcfcfc !important;
    color: var(--wcip-text-body) !important;
    box-shadow: none !important;
    font-size: 13px !important;
}

/* WooCommerce may replace billing_state with SelectWoo/Select2. Skin the visible control, not only the hidden select. */
.wcip-checkout-wrap .wcip-state .select2-container,
.wcip-checkout-wrap .wcip-state .selectWoo-container {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}
.wcip-checkout-wrap .wcip-state .select2-container .select2-selection--single {
    display: block;
    width: 100%;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: var(--wcip-radius-sm) !important;
    background: #fcfcfc !important;
    box-shadow: none !important;
    color: var(--wcip-text-body) !important;
}
.wcip-checkout-wrap .wcip-state .select2-container .select2-selection--single .select2-selection__rendered {
    display: block;
    overflow: hidden;
    padding: 0 30px 0 11px !important;
    color: var(--wcip-text-body) !important;
    font-size: 13px !important;
    line-height: 38px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wcip-checkout-wrap .wcip-state .select2-container .select2-selection--single .select2-selection__arrow {
    top: 0 !important;
    right: 7px !important;
    width: 20px !important;
    height: 38px !important;
}
.wcip-checkout-wrap .wcip-state .select2-container--focus .select2-selection--single,
.wcip-checkout-wrap .wcip-state .select2-container--open .select2-selection--single,
.wcip-checkout-wrap .wcip-state select:focus {
    border-color: var(--wcip-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 2px rgba(0,123,255,.1) !important;
    outline: 0 !important;
}

@media (max-width: 680px) {
    .wcip-checkout-wrap .wcip-city-state-row {
        display: block;
    }
    .wcip-checkout-wrap .wcip-city-state-row .wcip-state {
        width: 100%;
        margin-top: 12px;
    }
}


/* v1.3.6.2 - Brazilian UF compact presentation (visual only). */
.wcip-checkout-wrap .wcip-city-state-row .wcip-state {
    width: 84px;
}
.wcip-checkout-wrap .wcip-state .wcip-uf-select,
.wcip-checkout-wrap .wcip-state select#wcip_billing_state,
.wcip-checkout-wrap .wcip-state select#billing_state {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .02em;
}
.wcip-checkout-wrap .wcip-state .select2-container .select2-selection--single .select2-selection__rendered {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .02em;
}
@media (max-width: 680px) {
    .wcip-checkout-wrap .wcip-city-state-row .wcip-state {
        width: 100%;
    }
}


/* =========================================================
   v1.3.6.3 - Address layout refinement
   Bairro occupies its own row. Cidade + UF use a dedicated,
   overflow-safe grid and ignore WooCommerce form-row floats.
   ========================================================= */
.wcip-checkout-wrap .wcip-address-card .wcip-neighborhood-field,
.wcip-checkout-wrap .wcip-address-card .wcip-address-location-row,
#wcip-order-pay-address-card .wcip-neighborhood-field,
#wcip-order-pay-address-card .wcip-address-location-row {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.wcip-checkout-wrap .wcip-address-card .wcip-neighborhood-field {
    display: block;
    clear: both;
}

/* WooCommerce's canonical fields may carry form-row-first/last/wide.
 * WCIP owns layout here, so those inner wrappers must not float or
 * impose their own width inside our address grid. */
.wcip-checkout-wrap .wcip-address-card .wcip-neighborhood-field .wcip-native-field-row,
.wcip-checkout-wrap .wcip-address-card .wcip-address-location-row .wcip-native-field-row,
.wcip-checkout-wrap .wcip-address-card .wcip-neighborhood-field .form-row,
.wcip-checkout-wrap .wcip-address-card .wcip-address-location-row .form-row {
    display: block !important;
    float: none !important;
    clear: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wcip-checkout-wrap .wcip-address-card .wcip-address-location-row,
#wcip-order-pay-address-card .wcip-address-location-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 12px;
    align-items: end;
    margin: 0 0 12px;
}

.wcip-checkout-wrap .wcip-address-card .wcip-address-location-row > .wcip-field,
#wcip-order-pay-address-card .wcip-address-location-row > .wcip-field {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
}

.wcip-checkout-wrap .wcip-address-card .wcip-city-field,
#wcip-order-pay-address-card .wcip-city-field {
    grid-column: 1;
}

.wcip-checkout-wrap .wcip-address-card .wcip-state-field,
#wcip-order-pay-address-card .wcip-state-field {
    grid-column: 2;
    flex: none !important;
    width: 78px !important;
    min-width: 0 !important;
    max-width: 78px !important;
}

.wcip-checkout-wrap .wcip-address-card .wcip-city-field .woocommerce-input-wrapper,
.wcip-checkout-wrap .wcip-address-card .wcip-state-field .woocommerce-input-wrapper {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.wcip-checkout-wrap .wcip-address-card .wcip-city-field input,
.wcip-checkout-wrap .wcip-address-card .wcip-state-field input,
.wcip-checkout-wrap .wcip-address-card .wcip-state-field select,
.wcip-checkout-wrap .wcip-address-card .wcip-state-field .select2-container,
#wcip-order-pay-address-card .wcip-city-field input,
#wcip-order-pay-address-card .wcip-state-field input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Keep the compact UF presentation without letting SelectWoo exceed
 * the 78px grid track. */
.wcip-checkout-wrap .wcip-address-card .wcip-state-field .select2-container,
.wcip-checkout-wrap .wcip-address-card .wcip-state-field .selectWoo-container {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.wcip-checkout-wrap .wcip-address-card .wcip-state-field .select2-selection--single {
    width: 100% !important;
    max-width: 100% !important;
}

/* Bairro is intentionally a full row; Cidade receives the remaining
 * horizontal space and UF stays compact. */
.wcip-checkout-wrap .wcip-address-card .wcip-neighborhood-field input,
#wcip-order-pay-address-card .wcip-neighborhood-field input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 520px) {
    .wcip-checkout-wrap .wcip-address-card .wcip-address-location-row,
    #wcip-order-pay-address-card .wcip-address-location-row {
        grid-template-columns: minmax(0, 1fr) 72px;
        gap: 8px;
    }

    .wcip-checkout-wrap .wcip-address-card .wcip-state-field,
    #wcip-order-pay-address-card .wcip-state-field {
        width: 72px !important;
        max-width: 72px !important;
    }
}
