/*
Theme Name: Bricks Child
Theme URI: https://bricksbuilder.io/
Description: Bricks Child Theme
Author: Bricks
Author URI: https://bricksbuilder.io/
Version: 1.1.1
Template: bricks
Text Domain: bricks-child
GitHub Theme URI: perdanahary/bakedtoyou
GitHub Branch: main
*/

h3 {
    margin-bottom: 1rem;
}

.layout-default .brxe-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

:root {
    /* Product Gallery */
    --brand-pg-thumb--size: 80px;
    --brand-pg-gallery--gap: 20px;
    --brand-pg-gallery--radius: 8px;
    --brand-pg-gallery--color-active: var(--brand-color-primary);
}

#brx-content {
    padding-bottom: var(--space-xl);
}

.woocommerce.archive .bricks-before-shop-loop {
    flex-wrap: wrap;
    gap: 8px;
}

.woocommerce-mini-cart-item img {
    border-radius: 50%;
    object-fit: cover;
}

.brxe-woocommerce-mini-cart .cart-detail .woocommerce-mini-cart__empty-message {
    margin-block: auto;
    font-size: 14px;
}

/* WooCommerce Forms */
.woocommerce form .form-row {
    margin-bottom: 20px;
}

.woocommerce form .form-row label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
}

.woocommerce form .form-row .required {
    color: var(--brand-color-secondary);
    text-decoration: none;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
    width: 100% !important;
    padding: 0px 16px;
    border: 1px solid var(--brand-color-border) !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    color: var(--brand-color-text) !important;
    font-family: inherit;
    font-size: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    height: auto !important;
    min-height: 46px;
}

.woocommerce form .form-row input.input-text:hover,
.woocommerce form .form-row textarea:hover,
.woocommerce form .form-row select:hover,
.select2-container--default .select2-selection--single:hover {
    border-color: rgba(74, 62, 55, 0.2) !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--brand-color-secondary) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(217, 142, 115, 0.1), 0 4px 12px rgba(74, 62, 55, 0.05) !important;
}

.select2-container--default .select2-selection--single {
    align-content: center;
}

.woocommerce form .form-row textarea {
    min-height: 120px;
    line-height: 1.5;
    resize: vertical;
}

/* Custom Arrow for Select (Non-Select2) */
.woocommerce form .form-row select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234A3E37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Select2 Specific Fixes */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--brand-color-text) !important;
    padding-left: 0 !important;
    line-height: 22px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
    right: 12px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--brand-color-primary) transparent transparent transparent !important;
    border-width: 5px 4px 0 4px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--brand-color-primary) transparent !important;
    border-width: 0 4px 5px 4px !important;
}

/* Placeholder */
.woocommerce form .form-row input::placeholder,
.woocommerce form .form-row textarea::placeholder {
    color: var(--brand-color-secondary);
}

/* Invalid / Error State */
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select,
.woocommerce form .form-row.woocommerce-invalid .select2-selection--single {
    border-color: #D98E73 !important;
    /* Using secondary color for subtle error or keep red if preferred */
}

/* Validated State */
.woocommerce form .form-row.woocommerce-validated input.input-text,
.woocommerce form .form-row.woocommerce-validated select,
.woocommerce form .form-row.woocommerce-validated .select2-selection--single {
    border-color: #8EB8AD !important;
    /* A soft sage green for validation */
}

/* Disabled State */
.woocommerce form .form-row input:disabled,
.woocommerce form .form-row select:disabled,
.woocommerce form .form-row textarea:disabled {
    background-color: rgba(74, 62, 55, 0.05) !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Checkout Section Titles */
.checkout-section-title {
    width: 100%;
    flex: 0 0 100%;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--brand-color-border);
    color: var(--brand-color-primary);
    font-size: 18px;
    font-weight: 700;
    clear: both;
}

.personal-info-title {
    margin-top: 0;
}

.address-section-title {
    margin-top: 40px;
}

/* Product Gallery: Zoom cursor */
.brand-pg-root[data-zoom="true"] .brand-pg-slide.is-active {
    cursor: zoom-in;
}

form.cart {
    display: flex;
    align-items: center;
    gap: 1em;
    flex-wrap: wrap;
}

.woocommerce-variation-add-to-cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1em;
}

form.cart .quantity+button,
form.woocommerce-cart-form .quantity+button {
    margin-top: 0;
}

form.cart table.variations,
form.woocommerce-cart-form table.variations {
    margin-bottom: 8px;
}

/* Desktop: Reduce label width */
@media (min-width: 768px) {
    table.variations {
        table-layout: fixed;
        width: 100%;
    }

    table.variations th.label {
        width: 100px;
        /* Adjust this value as needed */
        text-align: left;
        vertical-align: middle;
    }

    table.variations td.value {
        width: auto;
    }
}

/* Mobile: Stack labels and fields */
@media (max-width: 767px) {

    table.variations,
    table.variations tbody,
    table.variations tr,
    table.variations th,
    table.variations td {
        display: block;
        width: 100% !important;
        text-align: left;
    }

    table.variations th.label {
        padding-bottom: 5px;
    }

    table.variations td.value {
        padding-bottom: 15px;
    }
}

table.variations th.label {
    vertical-align: top;
}

form.cart table.variations th label,
form.woocommerce-cart-form table.variations th label {
    line-height: 2.5em
}

.reset_variations {
    display: none !important;
}

form>div.single_variation_wrap>div.woocommerce-variation.single_variation {
    display: none !important;
}

.quantity {
    display: inline-flex !important;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    width: auto !important;
}

.quantity-stepper {
    box-shadow: inset 0 0 0 1px var(--brand-color-border);
}

.quantity .action.minus,
.quantity .action.plus {
    width: 40px !important;
    height: 40px !important;
    border: none;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity .action.minus:hover,
.quantity .action.plus:hover {
    background-color: var(--brand-color-light) !important;
}

.quantity input.qty {
    width: 45px !important;
    background: transparent !important;
    border: none !important;
    text-align: center;
    font-weight: 600;
    appearance: textfield;
}

/* Menghilangkan spinner default */
.quantity input::-webkit-outer-spin-button,
.quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Menghapus border dari tr agar tidak konflik */
table.variations tbody tr {
    border-top: none !important;
}

/* Memberikan border ke setiap sel di dalam baris */
table.variations tbody tr td,
table.variations tbody tr th {
    border-top: 1px solid #eeeeee !important;
    border-bottom: none !important;
}


@media (max-width: 768px) {

    /* 1. Mengurangi jarak antar grup varian (mengurangi padding atas grup) */
    table.variations th.label,
    table.variations td.value {
        padding-top: 5px !important;
        padding-bottom: 12px !important;
    }

    /* 2. Mengurangi jarak antara Label dengan Swatch/Pilihan */
    table.variations th.label {
        margin-bottom: 0px !important;
        padding-bottom: 8px !important;
    }

    table.variations td.value {
        padding-top: 0px !important;
        border-top: none !important;
        /* Menghilangkan padding atas agar swatch naik mendekati label */
    }

    /* 3. Jika swatch memiliki margin internal dari plugin (misal: Woo Variation Swatches) */
    .variable-items-wrapper {
        margin-bottom: 5px !important;
    }

    table.variations tbody tr {
        border-bottom: none !important;
    }
}

/* --- Final Compact Checkout Summary Styles --- */

:root {
    --bg-tag: #F5F5F5;
    --radius-list: 12px;
    --radius-btn: 10px;
}

/* Membuat sudut gambar produk menjadi bulat 16px */
.products .product img {
    border-radius: var(--radius-base);
}

/* Parent Container */
#order_review {
    display: flex !important;
    flex-direction: column !important;
    background: var(--white) !important;
    border-radius: var(--radius-base) !important;
    padding: 8px 20px 20px !important;
    min-width: 200px;
    gap: 20px;
}

/* Order Table */
.woocommerce-checkout-review-order-table {
    display: contents !important;
}

.woocommerce-checkout .woocommerce-checkout-review-order {
    gap: 0;
}

.woocommerce-checkout #order_review .woocommerce-shipping-totals #shipping_method {
    gap: 0;
}


.woocommerce-checkout-review-order-table tbody {
    order: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
}

#payment {
    order: 5 !important;
    width: 100%;
}

.woocommerce-checkout-review-order-table tfoot {
    order: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
}

#order_review .form-row.place-order {
    order: 6 !important;
    width: 100%;
}

.woocommerce-checkout-review-order-table thead {
    display: none !important;
}

.woocommerce-checkout-review-order-table tbody {
    display: flex !important;
    flex-direction: column !important;
}

.woocommerce-checkout-review-order-table .cart_item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px dashed var(--brand-color-border) !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.woocommerce-checkout-review-order-table .cart_item:hover {
    border-color: var(--brand-color-border) !important;
    box-shadow: none !important;
}

.woocommerce-checkout-review-order-table td.product-name {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 !important;
    border: none !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    letter-spacing: .05px !important;
}

.woocommerce-checkout-review-order-table .product-name .product-quantity {
    background: var(--bg-tag) !important;
    border-radius: 99px !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    line-height: 15px !important;
    margin-left: 0 !important;
    display: inline-block !important;
}

.woocommerce-checkout-review-order-table td.product-total {
    padding: 0 !important;
    border: none !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: right !important;
    white-space: nowrap !important;
}

/* Variations */
.woocommerce-checkout-review-order-table .product-name dl.variation {
    margin: 4px 0 0 0 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
}

.woocommerce-checkout-review-order-table .product-name dl.variation dt,
.woocommerce-checkout-review-order-table .product-name dl.variation dd {
    display: inline !important;
    margin: 0 !important;
}

.woocommerce-checkout-review-order-table .product-name dl.variation dt::after {
    content: ": " !important;
}

.woocommerce-checkout-review-order-table .product-name dl.variation dd {
    margin-right: 8px !important;
}

/* Payment Section */
#order_review #payment {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

#order_review ul.wc_payment_methods.payment_methods.methods {
    overflow: hidden !important;
    /* padding: 16px 0 !important; */
    list-style: none !important;
}

#order_review li.wc_payment_method {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    border-bottom: 1px dashed var(--brand-color-border) !important;
    background: transparent !important;
    cursor: pointer !important;
    transition: background .15s !important;
    margin: 0 !important;
    padding-block: 12px !important;
}

#order_review li.wc_payment_method:last-child {
    border-bottom: none !important;
}

#order_review li.wc_payment_method label {
    display: flex !important;
    align-items: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
    cursor: pointer !important;
    margin: 0 !important;
}

#order_review li.wc_payment_method input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border-radius: 50% !important;
    border: 1.5px solid var(--brand-color-border) !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: border-color .15s !important;
    margin: 0 12px 0 0 !important;
    background: var(--white) !important;
}

#order_review li.wc_payment_method input[type="radio"]:checked {
    border-color: var(--brand-color-primary) !important;
    background: var(--brand-color-primary) !important;
    box-shadow: inset 0 0 0 4px var(--white) !important;
}

button.woocommerce-form-login__submit {
    display: block !important;
    width: 100% !important;
    margin-top: 15px !important;
    /* Optional: adds space above the button */
}

/* Move quantity to the left of the name */
td.product-name {
    display: flex !important;
    align-items: center;
    /* Ensures vertical alignment */
}

td.product-name strong.product-quantity {
    order: -1;
    /* Moves it to the start of the flex container */
    margin-right: 8px;
    /* Adds space between quantity and name */
}

/* Payment description box */
#order_review .payment_box {
    flex-basis: 100% !important;
    margin-top: 8px !important;
    margin-left: 32px !important;
    background: var(--bg-tag) !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    border: none !important;
}

.woocommerce-checkout #payment .payment_methods .payment_box {
    margin: 0;
}

#order_review .payment_box::before {
    display: none !important;
}

/* Summary Section (tfoot) */
.woocommerce-checkout-review-order-table tfoot {
    display: flex !important;
    flex-direction: column !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-checkout-review-order-table tfoot tr {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 0 !important;
    border-bottom: 1px dashed var(--brand-color-border) !important;
    border-top: none !important;
    width: 100% !important;
}

.woocommerce-checkout-review-order-table tfoot th {
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: -.23px !important;
    text-align: left !important;
    padding: 0 !important;
}

.woocommerce-checkout-review-order-table tfoot td {
    padding: 0 !important;
}

/* Shipping within Summary */
.woocommerce-checkout-review-order-table .shipping {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 8px 0 !important;
    border-bottom: 1px dashed var(--brand-color-border) !important;
}

.woocommerce-checkout-review-order-table .shipping th {
    width: 100% !important;
}

.woocommerce-checkout-review-order-table .shipping td {
    width: 100% !important;
    text-align: left !important;
}

.woocommerce-checkout-review-order-table .shipping ul#shipping_method li {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 0 !important;
    border-bottom: 1px dashed var(--brand-color-border) !important;
    cursor: pointer !important;
    transition: background .15s !important;
    margin: 0 !important;
    background: transparent !important;
}

.woocommerce-checkout-review-order-table .shipping ul#shipping_method li:last-child {
    border-bottom: none !important;
}

.woocommerce-checkout-review-order-table .shipping ul#shipping_method li:hover {
    background: #FAFAF8 !important;
}

.woocommerce-checkout-review-order-table .shipping ul#shipping_method li input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border-radius: 50% !important;
    border: 1.5px solid var(--brand-color-border) !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: border-color .15s !important;
    margin: 0 12px 0 0 !important;
    background: var(--white) !important;
    position: relative !important;
}

.woocommerce-checkout-review-order-table .shipping ul#shipping_method li input[type="radio"]:checked {
    border-color: var(--brand-color-primary) !important;
    background: var(--brand-color-primary) !important;
    box-shadow: inset 0 0 0 4px var(--white) !important;
}

.woocommerce-checkout-review-order-table .shipping ul#shipping_method li label {
    display: flex !important;
    flex: 1 !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
}

.woocommerce-checkout-review-order-table .shipping ul#shipping_method li label .amount {
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: right !important;
}

/* Total Row */
.woocommerce-checkout-review-order-table tr.order-total {
    padding: 12px 0 !important;
    border-top: none !important;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    font-size: 18px !important;
}

/* CTA Button */
#order_review .form-row.place-order {
    margin: 0 !important;
    padding: 0 !important;
}

button#place_order {
    width: 100% !important;
    background: var(--brand-color-primary) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: var(--radius-btn) !important;
    height: 51px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    letter-spacing: -.44px !important;
    cursor: pointer !important;
    transition: background .2s, transform .1s, box-shadow .2s !important;
    box-shadow: 0 4px 12px rgba(165, 109, 53, .3) !important;
    font-family: var(--font-ext, sans-serif) !important;
}

button#place_order:hover {
    background: #8F5D2A !important;
    box-shadow: 0 6px 18px rgba(165, 109, 53, .4) !important;
}

button#place_order:active {
    transform: scale(.985) !important;
}

/* Mini Cart Styles */
.widget_shopping_cart_content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    height: 100% !important;
}

p.woocommerce-mini-cart__total.total {
    margin-top: auto !important;
}




li.woocommerce-mini-cart-item.mini_cart_item {
    display: flex !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid rgba(74, 62, 55, 0.08);
    transition: background-color 0.2s ease;
    overflow: visible !important;
}


li.woocommerce-mini-cart-item.mini_cart_item:hover {
    background-color: rgba(74, 62, 55, 0.02);
}

li.woocommerce-mini-cart-item.mini_cart_item:last-child {
    border-bottom: none;
}

.cart-item-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    width: 100%;
    position: relative;
}

/* Circular Image */
.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(74, 62, 55, 0.15);
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

li.woocommerce-mini-cart-item:hover .cart-item-image img {
    transform: scale(1.1);
}

/* Middle Info */
.cart-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    /* Prevents text overflow issues */
}

.cart-item-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* Variations (dl.variation) */
.cart-item-variation {
    margin: 0 !important;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.cart-item-variation dt {
    font-weight: 600;
    float: none !important;
    margin: 0 !important;
}

.cart-item-variation dd {
    margin: 0 8px 0 0 !important;
    float: none !important;
}

.cart-item-variation p {
    margin: 0 !important;
    display: inline;
}

/* Qty & Price */
.cart-item-qty-price {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-item-qty-price .sep {
    opacity: 0.4;
    font-size: 11px;
}

/* Remove Button */
.cart-item-remove {
    flex-shrink: 0;
    margin-left: 8px;
}

.cart-item-remove a.remove {
    position: static !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50% !important;
    background-color: transparent !important;
    color: #bbb !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-indent: 0 !important;
    border: 1px solid transparent !important;
}

.cart-item-remove a.remove img {
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

.woocommerce button[name="update_cart"],
.woocommerce input[name="update_cart"] {
    display: none;
}

.woocommerce-cart-form tbody tr:last-child {
    display: none;
    border-bottom-style: none;
}

.cart-item-custom table.shop_table.cart th,
.cart-item-custom table.shop_table.cart td {
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.cart-item-custom td.product-thumbnail {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
}

.cart-item-custom td.product-thumbnail img {
    width: 100% !important;
    height: auto !important;
}

/* ── Shipping-driven: Hide address fields with smooth transition ── */
/* Default state: hidden (no shipping selected). Shown when delivery (flat_rate) is chosen. */
.brand-address-hidden {
    overflow: hidden;
    max-height: 0 !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: none !important;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.35s ease;
}

/* Smooth open when delivery is selected */
.woocommerce form .form-row:not(.brand-address-hidden) {
    max-height: 200px;
    opacity: 1;
    transition: max-height 0.35s ease, opacity 0.25s ease 0.1s;
}


.woocommerce form .form-row label {
    text-align: left;
}

.woocommerce-account .woocommerce>.woocommerce-form-login:not([class^=brxe-]) {
    border-radius: var(--radius-base);
}

.woocommerce form .form-row textarea {
    padding-block: 8px;
}

/* Targeting the WooCommerce ordering select */
.woocommerce-ordering select.orderby {
    /* 1. Reset standard browser styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    /* 2. Match standard input borders and dimensions */
    border: 1px solid var(--brand-color-border);
    /* Match your input border color */
    border-radius: 8px;
    /* Match your input border radius */
    padding: 8px 12px;
    /* Match your input padding */
    height: 42px;
    /* Ensure consistent height */

    /* 3. Typography */
    font-family: inherit;

    /* 4. Background and custom arrow */
    background-color: #fff;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: 10px auto;

    /* 5. Layout */
    display: inline-block;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

/* Optional: Focus state to match inputs */
.woocommerce-ordering select.orderby:focus {
    border-color: var(--brand-color-border);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

select {
    line-height: 0;
}

form h2 {
    margin-bottom: 16px;
}

.woocommerce-Address-title.title h2 {
    margin-bottom: 16px !important;
}

fieldset {
    padding: 24px !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    border-radius: 16px !important;
    border: 1px solid var(--brand-color-border) !important;
    /* Menyesuaikan agar garis terlihat jelas */
}

fieldset legend {
    padding: 0 12px !important;
}

nav.woocommerce-MyAccount-navigation {
    background-color: var(--brand-color-light);
    border-radius: var(--radius-base);
    padding-block: 12px;
}

/* Container Box Alamat */
.u-column1.col-1.woocommerce-Address {
    background: var(--white);
    border: 1px solid var(--brand-color-border);
    border-radius: var(--radius-base);
    padding: 24px;
    margin-top: 16px !important;
    margin-bottom: 20px;
    max-width: 500px;
}

/* Header (Judul & Edit Link) */
.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--brand-color-border);
    padding-bottom: 12px;
}

/* Judul "Detail Info" */
.woocommerce-Address-title h2 {
    margin: 0 !important;
    font-size: 1.25rem !important;
    font-weight: 600;
}

/* Link "Edit Detail Info" */
.woocommerce-Address-title .edit {
    color: var(--brand-color-primary) !important;
    font-size: 0.875rem;
    text-decoration: none;
    font-weight: 500;
}

.woocommerce-Address-title .edit:hover {
    text-decoration: underline;
}

/* Blok Alamat */
address {
    font-style: normal;
    line-height: 1.5;
}

nav.woocommerce-MyAccount-navigation {
    align-self: flex-start;
    height: auto;
    /* Memastikan tidak ada height fix yang terkunci */
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
    line-height: 48px;
    /* font-size: 1rem; */
}

/* WooCommerce My Account Mobile Navigation: Horizontal Scroll Layout */
@media (max-width: 768px) {

    /* 1. Main navigation container: Enable horizontal scrolling */
    .woocommerce-MyAccount-navigation {
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 10px !important;
        /* Visual space for scrollbar */
    }

    /* 2. Custom scrollbar indicator for Webkit (Chrome/Safari) */
    .woocommerce-MyAccount-navigation::-webkit-scrollbar {
        height: 6px;
    }

    .woocommerce-MyAccount-navigation::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .woocommerce-MyAccount-navigation::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 10px;
    }

    /* 3. List: Horizontal flex layout, no wrapping, and no gap */
    .woocommerce-MyAccount-navigation ul {
        display: flex !important;
        flex-wrap: nowrap !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        gap: 0 !important;
    }

    /* 4. List Items: Prevent shrinking and wrapping */
    .woocommerce-MyAccount-navigation li {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        margin: 0 !important;
    }

    /* 5. Links: Adjust padding to 24px and ensure they're block-level */
    .woocommerce-account .woocommerce-MyAccount-navigation a {
        padding-left: 24px !important;
        padding-right: 24px !important;
        display: block !important;
    }
}

.woocommerce-order-details__title,
.woocommerce-column__title,
.wc-bacs-bank-details-heading {
    font-size: 22px;
    margin-bottom: 12px;
}

/* Container Tabel */
.woocommerce-table--order-details {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-bottom: 1px solid var(--brand-color-border) !important;
    border-radius: var(--radius-base) !important;
    overflow: hidden !important;
    width: 100% !important;
}

/* Pengaturan Header */
.woocommerce-table--order-details thead th {
    background-color: #fafafa !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    letter-spacing: 0.5px !important;
    border-bottom: 1px solid var(--brand-color-border) !important;
}

/* Sel Umum (th dan td) */
.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
    padding: 12px 16px !important;
    border: none !important;
    border-bottom: 1px solid var(--brand-color-border) !important;
}

/* Kolom Nama Produk (Mengambil sisa ruang) */
.woocommerce-table--order-details .product-name {
    width: auto !important;
    display: table-cell !important;
}

/* Kolom Total Harga (Lebar minimal) */
.woocommerce-table--order-details .product-total {
    width: 1% !important;
    text-align: right !important;
    white-space: nowrap !important;
}

/* Badge Kuantitas di Nama Produk */
.woocommerce-table--order-details .product-quantity {
    background-color: #f0f0f0 !important;
    padding: 4px 8px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    margin-right: 8px !important;
}

/* Hapus border terakhir agar tidak double */
.woocommerce-table--order-details tr:last-child td,
.woocommerce-table--order-details tr:last-child th {
    border-bottom: none !important;
}

mark.order-number,
mark.order-date,
mark.order-status {
    font-weight: 700;
    display: inline-block;
    margin: 0 4px;
}

/* Pastikan parent (td) dipaksa menjadi flex */
td.woocommerce-table__product-name.product-name {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

/* Pindahkan kuantitas ke urutan pertama (paling kiri) */
td.woocommerce-table__product-name.product-name .product-quantity {
    order: -1;
    margin-right: 0 !important;
}

/* Pastikan nama produk di urutan setelahnya */
td.woocommerce-table__product-name.product-name a {
    order: 1;
}

/* 1. Judul Notifikasi (Notice) */
p.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received {
    font-size: 32px;
    /* Desktop */
    color: rgb(17, 17, 17);
    /* Warna Body Text */
    font-weight: 600;
    /* Semi-Bold */
}

@media (max-width: 767px) {
    p.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received {
        font-size: 22px;
        /* Mobile */
    }
}

/* 2. Daftar Rincian Pesanan (Order Overview) */
ul.woocommerce-order-overview.woocommerce-thankyou-order-details.order_details {
    border-radius: 16px;
    overflow: hidden;
    /* Agar konten tidak keluar dari sudut tumpul */
}

/* 3. Keterangan Pengiriman (Shipped Via) */
small.shipped_via {
    font-size: 14px;
}

/* 1. Alert Style (Gaya Alert dengan Sudut Membulat 16px) */
.woocommerce-thankyou-order-received+ul+p {
    background-color: #e7f3ff;
    color: #0c5460;
    border: 1px solid #bee5eb;
    padding: 15px 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* 2. Heading di Luar Card */
.woocommerce-bacs-bank-details-heading {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.wc-bacs-bank-details-account-name {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #555;
}

/* 3. Card Style (Tanpa Shadow, Sudut Membulat 16px) */
section.woocommerce-bacs-bank-details {
    background-color: var(--white);
    border: 1px solid var(--brand-color-border);
    border-radius: var(--radius-base);
    padding: 24px;
    box-shadow: none;
    margin-bottom: 24px;
}

/* 4. Data Rows (Layout Baris di dalam List) */
ul.wc-bacs-bank-details {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

ul.wc-bacs-bank-details li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    margin: 0;
}

/* Menghapus border-bottom pada baris terakhir */
ul.wc-bacs-bank-details li:last-child {
    border-bottom: none !important;
}

/* Styling nilai/teks tebal di sisi kanan */
ul.wc-bacs-bank-details li strong {
    font-weight: 600;
}

/* Menargetkan elemen address di dalam detail pelanggan WooCommerce */
.woocommerce-customer-details address {
    border: 1px solid var(--brand-color-border);
    /* Warna border default WooCommerce */
    border-radius: var(--radius-base);
    /* Radius sudut sesuai permintaan */
    padding: 20px;
    /* Jarak antara teks dan border */
    margin-top: 12px;
    /* Jarak dari judul di atasnya */
    font-style: normal;
    /* Menghilangkan style miring bawaan tag <address> */
    background-color: #f9f9f9;
    /* Warna latar belakang kotak (opsional) */
}

/* Pastikan container menggunakan flexbox */
li.wc_payment_method.payment_method_duitku_shopee {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

/* Biarkan label fleksibel di samping radio */
li.wc_payment_method.payment_method_duitku_shopee label {
    width: auto !important;
    flex: 1 !important;
    margin: 0 !important;
}

/* Pastikan radio button punya jarak */
#payment_method_duitku_shopee {
    margin-right: 12px !important;
    flex-shrink: 0 !important;
}

/* Pastikan info detail tetap di bawah */
li.wc_payment_method.payment_method_duitku_shopee .payment_box {
    width: 100% !important;
    margin-left: 32px !important;
    /* Menyelaraskan dengan teks label */
}

p.woocommerce-mini-cart__buttons a.button.wc-forward:not(.checkout) {
    display: none !important;
}
/* WhatsApp Confirmation Message (Thank You Page) */
.brand-wa-confirmation {
    margin-top: 30px;
    padding: 24px;
    background-color: #f0fdf4; /* Light green background */
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-base);
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.brand-wa-confirmation p {
    margin-bottom: 16px !important;
    color: #166534;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
}

.brand-wa-confirmation .wa-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25d366;
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.brand-wa-confirmation .wa-button:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.brand-wa-confirmation .wa-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
