/* Checkout Custom Styles */

/* Container Layout (Grid for centering on Checkout) */
.place-order {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
}

/* Place Order Button (Classic & Blocks) & Cart Proceed Button */
#place_order,
.wc-block-components-checkout-place-order-button,
.wc-block-components-button.wc-block-components-checkout-place-order-button,
.wp-element-button.wc-block-components-checkout-place-order-button,
a.return-to-cart-link+button,
button[name="woocommerce_checkout_place_order"],
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background-color: var(--btn-bg) !important;
    /* Brand Dark */
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
    /* Full rounded pill */
    padding: 12px 32px !important;
    font-size: 1rem !important;
    letter-spacing: 0.025em !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid transparent !important;

    /* Sizing */
    width: auto !important;
    min-width: 200px !important;

    /* Grid item centering behavior is handled by parent, but ensure self alignment */
    margin: 20px 0 0 0 !important;

    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    text-transform: uppercase !important;
    font-size: 14px !important;

    /* Ensure text inside button is centered */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

#place_order:hover,
.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-button.wc-block-components-checkout-place-order-button:hover,
.wp-element-button.wc-block-components-checkout-place-order-button:hover,
a.return-to-cart-link+button:hover,
button[name="woocommerce_checkout_place_order"]:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: var(--btn-bg) !important;
    filter: brightness(0.85);
    /* Darken slightly on hover */
    /* Slightly darker */
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

/* Return to Cart Link */
.return-to-cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    color: #6b7280;
    /* gray-500 */
    text-decoration: none !important;
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
    width: auto;
}

.return-to-cart-link:hover {
    color: #A05C35;
    /* Brand Primary */
    border-bottom-color: #A05C35;
}

.return-to-cart-link::before {
    content: '←';
    margin-right: 6px;
    font-size: 1.1em;
    transition: transform 0.2s ease;
}

.return-to-cart-link:hover::before {
    transform: translateX(-4px);
}