.tagup-checkout-checkout-steps-container {
    margin-bottom: 2rem;
}

.tagup-checkout-checkout-steps-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 6.5rem auto 2.5rem;
    padding: 0;
    list-style: none;
    max-width: 760px;
    width: 100%;
    position: relative;
}

.tagup-checkout-checkout-steps-nav li {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    text-align: center;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0;
    border-radius: 0;
    background: transparent;
    transition: color 0.2s ease;
}

/* Base line elements */
.tagup-checkout-checkout-steps-nav li::before,
.tagup-checkout-checkout-steps-nav li::after {
    content: '';
    position: absolute;
    top: 4px; /* center of 8px circle */
    height: 1.5px;
    background: #cbd5e1;
    z-index: 1;
    transition: background-color 0.2s ease;
}

.tagup-checkout-checkout-steps-nav li::before {
    left: 0;
    right: 50%;
    margin-right: 6px;
}

.tagup-checkout-checkout-steps-nav li::after {
    left: 50%;
    right: 0;
    margin-left: 6px;
}

/* Hide outer ends of the line */
.tagup-checkout-checkout-steps-nav li:first-child::before {
    display: none;
}

.tagup-checkout-checkout-steps-nav li:last-child::after {
    display: none;
}

/* Colored progress lines */
.tagup-checkout-checkout-steps-nav li.is-complete::before,
.tagup-checkout-checkout-steps-nav li.is-complete::after,
.tagup-checkout-checkout-steps-nav li.is-active::before {
    background: #000;
}

/* Step circle styling */
.tagup-checkout-step-index {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #fff;
    text-indent: -9999px;
    overflow: hidden;
    margin: 0 0 0.5rem 0;
    z-index: 2;
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

/* Active step circle */
.tagup-checkout-checkout-steps-nav li.is-active {
    color: #000;
    font-weight: 700;
}

.tagup-checkout-checkout-steps-nav li.is-active .tagup-checkout-step-index {
    background: #000;
    border-color: #000;
}

/* Complete step circle */
.tagup-checkout-checkout-steps-nav li.is-complete {
    color: #000;
    font-weight: 700;
}

.tagup-checkout-checkout-steps-nav li.is-complete .tagup-checkout-step-index {
    background: #000;
    border-color: #000;
}

.tagup-checkout-checkout-steps__form {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

.tagup-checkout-checkout-step {
    display: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    background: #fff;
    max-width: 760px;
    margin: 0 auto 2rem;
}

.tagup-checkout-checkout-step.is-active {
    display: block;
}

.woocommerce-billing-fields .billing_dokan,
.woocommerce-billing-fields .form-row.billing_dokan,
.woocommerce-billing-fields [class*="billing_dokan"],
.woocommerce-checkout .billing_dokan {
    display: none !important;
}

.tagup-checkout-checkout-step__header {
    margin-bottom: 1.5rem;
}

.tagup-checkout-checkout-step__header h3 {
    margin: 0 0 0.25rem;
    font-size: 1.35rem;
}

.tagup-checkout-checkout-step__header p {
    margin: 0;
    color: #666;
}

.tagup-checkout-step-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tagup-checkout-step-actions .button-outline {
    background: transparent;
    border: 1px solid #111;
    color: #111;
}

.tagup-checkout-step-actions .button-outline:hover {
    background: #111;
    color: #fff;
}

.tagup-checkout-account-panels {
    margin-bottom: 1.5rem;
}

.tagup-checkout-checkout-login-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.tagup-checkout-checkout-login-toggle__btn {
    background: none;
    border: 0;
    color: #0071a1;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.tagup-checkout-checkout-login-toggle__btn:focus {
    outline: none;
    text-decoration: underline;
}

.tagup-checkout-checkout-login-toggle .toggle-icon {
    transition: transform 0.2s ease;
}

.tagup-checkout-checkout-login-toggle.is-open .toggle-icon {
    transform: rotate(90deg);
}

.tagup-checkout-checkout-login {
    display: none;
}

.tagup-checkout-checkout-login.is-open {
    display: block;
}

.tagup-checkout-create-account {
    display: block;
}

.tagup-checkout-create-account.is-hidden {
    display: none;
}

.tagup-checkout-account-error {
    margin-bottom: 1rem;
}

.tagup-checkout-account-fields .create-account .form-row,
.tagup-checkout-account-fields .create-account .form-row-wide {
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.tagup-checkout-account-fields .create-account .form-row-wide + .form-row-wide {
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .tagup-checkout-account-fields .create-account .form-row-first,
    .tagup-checkout-account-fields .create-account .form-row-last {
        width: 48% !important;
        float: left !important;
        clear: none !important;
    }

    .tagup-checkout-account-fields .create-account .form-row-last {
        margin-left: 4% !important;
    }
}

.tagup-checkout-account-fields .create-account:after {
    content: '';
    display: block;
    clear: both;
}

.tagup-checkout-identity-status {
    border: 1px solid #dbe5f3;
    background: #f8fafc;
    border-radius: 6px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.tagup-checkout-identity-status.is-warning {
    border-color: #f97316;
    background: #fff7ed;
}

.tagup-checkout-identity-status.is-info {
    border-color: #38bdf8;
    background: #f0f9ff;
}

.tagup-checkout-identity-status.is-success {
    border-color: #22c55e;
    background: #ecfdf5;
}

.tagup-checkout-identity-status__label {
    margin: 0 0 0.5rem;
}

.tagup-checkout-login {
    margin-bottom: 1.5rem;
}

.tagup-checkout-login__error {
    margin-bottom: 1rem;
}

.tagup-checkout-login-fields .form-row {
    width: 100%;
    margin-bottom: 0.75rem;
}

.tagup-checkout-login-remember {
    margin-bottom: 0.5rem;
}

.tagup-checkout-login-submit.is-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.6);
    border-top-color: rgba(255,255,255,1);
    border-radius: 999px;
    margin-left: 0.5rem;
    animation: tagup-checkout-spin 0.6s linear infinite;
    vertical-align: middle;
}

.tagup-checkout-login-links {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
}

.tagup-checkout-login-links a {
    color: inherit;
}

.tagup-checkout-login__error.woocommerce-error {
    display: none;
}

.tagup-checkout-hidden-input {
    display: none !important;
}

@keyframes tagup-checkout-spin {
    from { transform: rotate(0); }
    to { transform: rotate(360deg); }
}

.tagup-checkout-notes-toggle {
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tagup-checkout-notes-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.tagup-checkout-notes-area {
    margin-bottom: 1.25rem;
}

.tagup-checkout-review-order-preview {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    background: #fff;
    margin-bottom: 1.5rem;
}

.tagup-checkout-contract-preview-block {
    margin-top: 1.5rem;
}

.tagup-checkout-contract-preview-block h4 {
    margin-bottom: 0.75rem;
}

.tagup-checkout-contract-preview-content {
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #f9f9f9;
    padding: 1.25rem;
    min-height: 50vh;
    max-height: 70vh;
    overflow-y: auto;
}

.tagup-checkout-customer-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 640px;
    margin: 0 auto;
}

.tagup-checkout-customer-details .col-1,
.tagup-checkout-customer-details .col-2 {
    width: 100%;
}

@media (min-width: 768px) {
    .tagup-checkout-customer-details .col-1,
    .tagup-checkout-customer-details .col-2 {
        width: 100%;
    }
}

#billing_cpf_field {
    display: block !important;
}

/* Ensure billing name fields (Nome + Sobrenome) display side-by-side */
.woocommerce-billing-fields .form-row-first,
.woocommerce-billing-fields .form-row-last {
    float: left !important;
    clear: none !important;
}

.woocommerce-billing-fields .form-row-first {
    width: 48% !important;
    margin-right: 0 !important;
}

.woocommerce-billing-fields .form-row-last {
    width: 48% !important;
    margin-left: 4% !important;
}

.woocommerce-billing-fields .form-row-wide {
    float: none !important;
    clear: both !important;
    width: 100% !important;
}

.woocommerce-billing-fields__field-wrapper::after {
    content: '' !important;
    display: block !important;
    clear: both !important;
}

/* Accordion review toggle styling */
.tagup-checkout-review-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    user-select: none;
    ma
    font-size: 0.95rem;
}

.tagup-checkout-review-toggle:hover {
    background: #f1f5f9;
}

.tagup-checkout-review-toggle-icon {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.tagup-checkout-review-toggle.is-active .tagup-checkout-review-toggle-icon {
    transform: rotate(180deg);
}

.tagup-checkout-review-order-preview .woocommerce-checkout-review-order-table {
    margin-top: 1rem;
    border: none;
}

/* Custom coupon styling */
.tagup-checkout-coupon-top-holder form.checkout_coupon {
    display: block !important;
    margin: 0 0 1.5rem 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    clear: both;
}

/* Hide coupon form when outside the holder, show it inside the top holder on Step 2 */
.tagup-checkout-checkout-steps-container form.checkout_coupon {
    display: none;
}
[data-step-id="address"] .tagup-checkout-coupon-top-holder form.checkout_coupon {
    display: block !important;
}

.tagup-checkout-coupon-custom {
    margin: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.tagup-checkout-coupon-toggle-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #000;
    font-weight: 500;
    text-decoration: underline;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.tagup-checkout-coupon-toggle-link:hover {
    color: #333;
    border-color: #94a3b8;
    background: #f8fafc;
}

.tagup-checkout-coupon-input-wrapper {
    display: flex;
    position: relative;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    height: 44px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.tagup-checkout-coupon-input-wrapper.is-focused {
    border-color: #000;
}

.tagup-coupon-input {
    flex: 1;
    height: 100% !important;
    border: none !important;
    padding: 0 45px 0 16px !important;
    font-size: 0.875rem !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box;
    margin: 0 !important;
}

.tagup-coupon-button {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 44px !important;
    height: 100% !important;
    background: transparent !important;
    color: #000 !important;
    border: none !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: color 0.2s;
}

.tagup-coupon-button:hover {
    color: #555 !important;
    background: transparent !important;
}

/* Shipping options styling - Single Column layout with card radio selectors */
.tagup-checkout-checkout-steps-container .woocommerce-checkout-review-order-table tfoot {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.tagup-checkout-checkout-steps-container .woocommerce-checkout-review-order-table tfoot tr:not(.shipping):not(.tagup-consolidated-shipping-row) {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 0 !important;
    border-top: 1px solid #f1f5f9 !important;
}

.tagup-checkout-checkout-steps-container .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal {
    border-top: none !important;
}

.tagup-checkout-checkout-steps-container .woocommerce-checkout-review-order-table tfoot tr:not(.shipping):not(.tagup-consolidated-shipping-row) th {
    display: block !important;
    text-align: left !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    font-weight: 600 !important;
    width: auto !important;
}

.tagup-checkout-checkout-steps-container .woocommerce-checkout-review-order-table tfoot tr:not(.shipping):not(.tagup-consolidated-shipping-row) td {
    display: block !important;
    text-align: right !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    width: auto !important;
    flex: 1 !important;
}

.tagup-checkout-checkout-steps-container .woocommerce-checkout-review-order-table tfoot tr.shipping {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 1.5rem 0 0.5rem 0 !important;
    border-top: 1px solid #f1f5f9 !important;
    border-bottom: none !important;
    background: transparent !important;
    margin-bottom: 0 !important;
}

.tagup-checkout-checkout-steps-container .woocommerce-checkout-review-order-table tfoot tr.shipping th {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    font-size: 0 !important; /* hide default label */
    padding: 0 !important;
    border: none !important;
}

.tagup-checkout-checkout-steps-container .woocommerce-checkout-review-order-table tfoot tr.shipping th::before {
    content: "Forma de Envio" !important;
    display: block !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    margin-top: 1.5rem !important;
    border-bottom: 2px solid #111 !important;
    padding-bottom: 0.5rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #111 !important;
}

.tagup-checkout-checkout-steps-container .woocommerce-checkout-review-order-table tfoot tr.shipping td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: none !important;
}

/* Consolidated Shipping Note Row Styling */
.tagup-checkout-checkout-steps-container .woocommerce-checkout-review-order-table tfoot tr.tagup-consolidated-shipping-row {
    display: flex !important;
    width: 100% !important;
    padding: 0.5rem 0 1rem 0 !important;
    border: none !important;
    background: transparent !important;
}

.tagup-checkout-checkout-steps-container .woocommerce-checkout-review-order-table tfoot tr.tagup-consolidated-shipping-row td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
}

#shipping_method {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

#shipping_method li {
    display: flex !important;
    flex-direction: row-reverse !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem 1.25rem !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #fff !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#shipping_method li:hover {
    border-color: #94a3b8 !important;
}

#shipping_method li:has(input[type="radio"]:checked) {
    border-color: #000 !important;
    background-color: #f8fafc !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
}

#shipping_method li input[type="radio"] {
    margin: 0 !important;
    width: 20px !important;
    height: 20px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    accent-color: #000 !important;
}

#shipping_method li label {
    margin: 0 !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #000 !important;
    flex: 1 !important;
    text-align: left !important;
    padding-right: 1rem !important;
    background: transparent !important;
    padding-left: 0 !important;
}

#shipping_method li label .amount {
    font-weight: 700 !important;
    color: #000 !important;
}

/* Hide Dokan / WooCommerce split shipping vendor / package details label */
.woocommerce-checkout-review-order-table th.shipping-package-name,
.woocommerce-checkout-review-order-table .shipping-package-name,
.woocommerce-checkout-review-order-table .shipping-package-title,
.woocommerce-checkout-review-order-table .dokan-shipping-package-title,
.woocommerce-checkout-review-order-table .shipping-package-details,
#order_review .shipping-package-name,
#order_review .shipping-package-title,
#order_review .dokan-shipping-package-title,
#order_review .shipping-package-details {
    display: none !important;
}

/* Stand out PIX price and keep credit card payments discrete */
.ppc-checkout-espelho {
    border-top: 2px solid #000 !important;
    border-bottom: 2px solid #000 !important;
}

.ppc-checkout-espelho .ppc-bloco-pix {
    margin: 0.5rem 0 !important;
}

.ppc-checkout-espelho .ppc-preco-pix {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #440909 !important;
}

.ppc-checkout-espelho .ppc-bloco-parcelas {
    font-size: 0.85rem !important;
    color: #666 !important;
    margin-bottom: 0.5rem !important;
}

/* Responsive layout adjustments */
@media (max-width: 767px) {
    .tagup-checkout-checkout-steps-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        padding: 0 0.5rem !important;
        overflow: hidden !important;
    }
    
    .tagup-checkout-checkout-steps-nav li {
        font-size: 0.62rem !important;
        white-space: nowrap !important;
        flex: 1 !important;
        min-width: 0 !important;
        max-width: 33.33% !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }

    .tagup-checkout-checkout-steps-nav li::before,
    .tagup-checkout-checkout-steps-nav li::after {
        display: block !important;
        top: 4px !important;
        height: 1.5px !important;
    }
}

/* Custom holders styling */
.tagup-checkout-order-review-products-holder,
.tagup-checkout-order-review-shipping-holder,
.tagup-checkout-order-review-payment-holder {
    margin-top: 2rem;
    width: 100%;
    display: block;
    clear: both;
}

.tagup-checkout-review-products-title,
.tagup-checkout-shipping-title,
.tagup-checkout-payment-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    margin-top: 2rem !important;
    border-bottom: 2px solid #111 !important;
    padding-bottom: 0.5rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #111;
}

/* Custom Items Toggle Styling */
.tagup-checkout-items-toggle-container {
    margin: 1.5rem 0;
    width: 100%;
}

.tagup-checkout-items-toggle {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.tagup-checkout-items-toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    background: #f8fafc;
    user-select: none;
    transition: background-color 0.2s 
}

.tagup-checkout-items-toggle-header:hover {
    background: #f1f5f9;
}

.tagup-checkout-items-toggle-header.is-active {
    border-bottom: 1px solid #cbd5e1;
}

.tagup-checkout-items-toggle-title {
    color: #000;
}

.tagup-checkout-items-toggle-icon {
    font-size: 0.8rem;
    color: #64748b;
    transition: transform 0.2s ease;
}

.tagup-checkout-items-list {
    padding: 0 16px;
    background: #fff;
}

.tagup-checkout-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.tagup-checkout-item-row:last-child {
    border-bottom: none;
}

.tagup-checkout-item-image {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.tagup-checkout-item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
    margin: 0 !important;
}

.tagup-checkout-item-details {
    flex: 1;
    margin-left: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tagup-checkout-item-details .product-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #000;
    line-height: 1.25;
}

.tagup-checkout-item-details .product-qty-price {
    font-size: 0.8rem;
    color: #64748b;
}

.tagup-checkout-item-subtotal {
    font-size: 0.875rem;
    font-weight: 700;
    color: #000;
    text-align: right;
}

/* Native Order Review styling adjustments */
.tagup-checkout-checkout-steps-container .woocommerce-checkout-review-order {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.tagup-checkout-checkout-steps-container .woocommerce-checkout-review-order-table thead,
.tagup-checkout-checkout-steps-container .woocommerce-checkout-review-order-table tbody {
    display: none !important;
}

.tagup-checkout-checkout-steps-container .woocommerce-checkout-review-order-table {
    border: none !important;
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
    width: 100% !important;
}

.tagup-checkout-checkout-steps-container .woocommerce-checkout-review-order-table th,
.tagup-checkout-checkout-steps-container .woocommerce-checkout-review-order-table td {
    padding: 10px 0 !important;
    border-top: 1px solid #f1f5f9 !important;
    background: transparent !important;
}

.tagup-checkout-checkout-steps-container .woocommerce-checkout-review-order-table tr.cart-subtotal th,
.tagup-checkout-checkout-steps-container .woocommerce-checkout-review-order-table tr.cart-subtotal td {
    border-top: none !important;
}

.tagup-checkout-checkout-steps-container .woocommerce-checkout-review-order-table tr.order-total th,
.tagup-checkout-checkout-steps-container .woocommerce-checkout-review-order-table tr.order-total td {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #000 !important;
}

.tagup-checkout-billing-wrapper {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Force visibility overrides for checkout coupon form and order review */
.tagup-checkout-checkout-steps-container form.checkout_coupon,
.tagup-checkout-checkout-steps-container form#woocommerce-checkout-form-coupon,
.tagup-checkout-checkout-steps-container #order_review {
    display: block !important;
}

/* For rentals, hide the native submit button block on Step 2 (Finalização) */
.tagup-checkout-checkout-steps-container[data-has-rentals="1"] [data-step-id="address"] #payment .place-order {
    display: none !important;
}

/* Custom submit button for contract step */
.tagup-checkout-contract-submit-wrapper {
    margin: 2rem 0;
    text-align: center;
}

.tagup-checkout-submit-contract {
    display: inline-block;
    background-color: #000 !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    padding: 0.75rem 2rem !important;
    border-radius: 6px !important;
    border: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    width: 100%;
    max-width: 320px;
}

.tagup-checkout-submit-contract:hover {
    background-color: #222 !important;
}

.tagup-checkout-submit-contract:active {
    transform: scale(0.98);
}

/* WooCommerce Notices (Alerts) Customization */
.woocommerce-notices-wrapper {
    max-width: 760px !important;
    margin: 1.5rem auto 0 !important;
    padding: 0 1.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.woocommerce-message, 
.woocommerce-info, 
.woocommerce-error,
.woocommerce-notice {
    background-color: #f8fafc !important; /* light soft background */
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #64748b !important; /* neutral gray accent */
    border-radius: 6px !important;
    color: #334155 !important;
    padding: 1rem 1.25rem !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    margin: 0 0 1rem 0 !important;
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important;
}

/* Hide empty alerts to prevent them from rendering with border/padding/margin */
.woocommerce-message:empty, 
.woocommerce-info:empty, 
.woocommerce-error:empty,
.woocommerce-notice:empty,
.tagup-checkout-account-error:empty,
.tagup-checkout-login__error:empty {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Success Alert (Message) */
.woocommerce-message {
    background-color: #f0fdf4 !important; /* very soft pastel green */
    border-color: #dcfce7 !important;
    border-left: 4px solid #16a34a !important; /* solid green accent */
    color: #14532d !important;
}

.woocommerce-message a.button {
    background: #16a34a !important;
    color: #fff !important;
    border: none !important;
    padding: 4px 12px !important;
    font-size: 0.8rem !important;
    border-left: 4px solid #0284c7 !important; /* solid blue accent */
    color: #0c4a6e !important;
}

/* Error Alert */
.woocommerce-error {
    background-color: #fef2f2 !important; /* very soft pastel red */
    border-color: #fee2e2 !important;
    border-left: 4px solid #dc2626 !important; /* solid red accent */
    color: #7f1d1d !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.woocommerce-error li {
    margin: 0.25rem 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    color: inherit !important;
    font-size: inherit !important;
}

/* Remove default pseudo icons from WooCommerce notices if any */
.woocommerce-message::before, 
.woocommerce-info::before, 
.woocommerce-error::before {
    display: none !important;
    content: "" !important;
}

/* Force Steps Form, Order Review and Coupon/Items Toggle to take full 100% width and clear floats */
.tagup-checkout-checkout-steps-container #order_review,
.tagup-checkout-checkout-steps-container .woocommerce-checkout-review-order,
.tagup-checkout-checkout-step[data-step-id="address"] .tagup-checkout-items-toggle-container,
.tagup-checkout-checkout-step[data-step-id="address"] #order_review,
.tagup-checkout-checkout-step[data-step-id="address"] .tagup-checkout-coupon-top-holder,
.tagup-checkout-checkout-steps-container #order_review_heading {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    display: block !important;
}

.tagup-checkout-checkout-steps-container #order_review_heading {
    display: none !important; /* hide default 'Seu pedido' heading */
}

/* Ensure available coupons block (Smart Coupons) occupies full width and looks like a clean card */
.tagup-checkout-coupon-top-holder #coupons_list {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 1.25rem !important;
    margin-bottom: 1.5rem !important;
    clear: both !important;
    box-sizing: border-box !important;
}

.tagup-checkout-coupon-top-holder #coupons_list .sc-accordion-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #f8fafc !important;
    padding: 12px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #000 !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: background-color 0.2s ease !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.tagup-checkout-coupon-top-holder #coupons_list .sc-accordion-header:hover {
    background: #f1f5f9 !important;
}

.tagup-checkout-coupon-top-holder #coupons_list .sc-accordion-header.open {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom: 1px solid #cbd5e1 !important;
}

.tagup-checkout-coupon-top-holder #coupons_list .sc-accordion-content {
    border: 1px solid #cbd5e1 !important;
    border-top: none !important;
    border-radius: 0 0 6px 6px !important;
    background: #fff !important;
    padding: 16px !important;
    box-sizing: border-box !important;
}

.tagup-checkout-coupon-top-holder #coupons_list .sc-accordion-content.open {
    max-height: 250px !important;
    overflow-y: auto !important;
}
/* --- BRAND LAYOUT ADJUSTMENTS (SHARP CORNERS & PADDING ALIGNMENTS) --- */

/* 1. Step Title Prominence */
.tagup-checkout-checkout-step__header h3 {
    margin: 0 0 0.5rem !important;
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #000 !important;
    border-bottom: 3px solid #000 !important;
    padding-bottom: 10px !important;
}

.tagup-checkout-checkout-step__header p {
    margin: 0.5rem 0 0 0 !important;
    color: #666 !important;
    font-size: 0.95rem !important;
}

/* 2. De-emphasize Forma de Envio Title */
.tagup-checkout-checkout-steps-container .woocommerce-checkout-review-order-table tfoot tr.shipping th::before {
    content: "Forma de Envio" !important;
    display: block !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.75rem !important;
    margin-top: 1.25rem !important;
    border-bottom: 1px solid #ccc !important;
    padding-bottom: 0.25rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #333 !important;
}

/* 3. Padding adjustments */
.tagup-checkout-items-toggle-header {
    padding: 16px 24px !important;
}

.tagup-checkout-items-list {
    padding: 0 24px !important;
}

#shipping_method li {
    padding: 16px 24px !important;
}

/* Prevent label from floating/positioning outside container padding */
#shipping_method li label {
    float: none !important;
    position: static !important;
    display: inline-block !important;
    line-height: 1.5 !important;
    width: auto !important;
}

#shipping_method li input[type="radio"] {
    float: none !important;
    position: static !important;
}

.tagup-checkout-coupon-top-holder #coupons_list .sc-accordion-header {
    padding: 16px 24px !important;
}

.tagup-checkout-coupon-top-holder #coupons_list .sc-accordion-content {
    padding: 24px !important;
}

.tagup-checkout-coupon-toggle-link {
    padding: 0 24px !important;
    height: 48px !important;
}

.tagup-checkout-coupon-input-wrapper {
    height: 48px !important;
}

.tagup-coupon-input {
    padding: 0 45px 0 24px !important;
}

/* 4. Display standard coupon form inside holder */
.tagup-checkout-coupon-top-holder form.checkout_coupon {
    display: block !important;
    margin: 0 0 1.25rem 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    clear: both !important;
    width: 100% !important;
}

/* 5. Enforcement of straight corners (border-radius: 0) on all elements, keeping radio buttons round */
.tagup-checkout-checkout-steps-container,
.tagup-checkout-checkout-steps-container *,
.tagup-checkout-coupon-top-holder,
.tagup-checkout-coupon-top-holder * {
    border-radius: 0 !important;
}

.tagup-checkout-checkout-steps-container input[type="radio"] {
    border-radius: 50% !important;
}













.woocommerce-input-wrapper .select2-container {
    width: 100% !important;
}

.select2-dropdown,
.woocommerce-input-wrapper .select2-dropdown {
    z-index: 99999 !important;
    border-radius: 0 !important;
    background-color: #fff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

/* Ensure straight corners on Select2 selections and dropdown lists */
.select2-selection,
.select2-selection *,
.select2-dropdown,
.select2-dropdown *,
.woocommerce-input-wrapper .select2-selection,
.woocommerce-input-wrapper .select2-selection *,
.woocommerce-input-wrapper .select2-dropdown,
.woocommerce-input-wrapper .select2-dropdown * {
    border-radius: 0 !important;
}

/* Hide customer details initially in Step 1 for logged-out visitors */
body.logged-out .tagup-checkout-checkout-step[data-step-id="account"] #customer_details {
    display: none;
}

/* Custom Coupon Label (No border, no background, non-clickable) */
.tagup-checkout-coupon-label {
    display: block !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #000 !important;
    margin-bottom: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border: none !important;
    padding-bottom: 0 !important;
    width: 100% !important;
}

/* Friendly submit note below place order buttons */
.tagup-checkout-submit-note {
    margin: 1.5rem auto 0 !important;
    color: #64748b !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    text-align: center !important;
    max-width: 480px !important;
    display: block !important;
}

/* Force hide for inline display:none with high specificity */
.woocommerce-checkout [style*="display:none"],
.woocommerce-checkout [style*="display: none"],
.tagup-checkout-checkout-steps-container [style*="display:none"],
.tagup-checkout-checkout-steps-container [style*="display: none"] {
    display: none !important;
}

/* Custom styled native select dropdown for Gender to match other inputs */
.woocommerce-checkout select.tagup-native-select {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    height: 48px !important;
    padding: 0 40px 0 16px !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #fff !important;
    color: #000 !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    border-radius: 0 !important;
    outline: none !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
}
