/*
 * Styles for the Single Add to Cart Button component.
 * MODIFIED: Full-width with Gold & Milky White theme.
 */
.cod-single-button-container {
    display: flex; /* Changed from inline-flex */
    width: 100%; /* Set to full width */
    border: 1px solid #D6BBA5; /* Gold-toned border */
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Quantity control buttons (+/-) */
.cod-single-button-container .qty-btn {
    background-color: #F8F4E6; /* Milky White */
    border: none;
    cursor: pointer;
    padding: 0 18px;
    font-size: 22px;
    font-weight: 600;
    color: #5D4037; /* Dark Brown for text */
    line-height: 1;
    transition: background-color 0.2s;
}
.cod-single-button-container .qty-btn:hover {
    background-color: #F0EAD6; /* Slightly darker milky white */
}

/* Quantity number input */
.cod-single-button-container input.qty-input {
    width: 60px;
    height: 48px;
    text-align: center;
    border: none;
    border-left: 1px solid #EFEBE0;
    border-right: 1px solid #EFEBE0;
    font-size: 16px;
    font-weight: 600;
    color: #5D4037; /* Dark Brown for text */
    background-color: #FCF9F0; /* Light milky background */
    padding: 5px;
    box-sizing: border-box;
}
/* Hide number input spinners */
.cod-single-button-container input.qty-input::-webkit-outer-spin-button,
.cod-single-button-container input.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.cod-single-button-container input.qty-input[type=number] {
    -moz-appearance: textfield;
}
.cod-single-button-container input.qty-input:focus {
    outline: 2px solid transparent;
    outline-offset: -2px;
    box-shadow: none;
}

/* Main Add to Cart button link */
.cod-single-button-container .add-to-cart-btn {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 48px;
    padding: 0 24px;
    background: linear-gradient(to right, #F8F4E6, #C0A062); /* Milky White to Gold Gradient */
    color: #5D4037; /* Dark Brown for text */
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease-in-out;
    white-space: nowrap;
}
.cod-single-button-container .add-to-cart-btn:hover {
    background: linear-gradient(to right, #C0A062, #F8F4E6); /* Reversed gradient on hover */
    color: #4E342E;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

/* WooCommerce AJAX states */
.cod-single-button-container .add-to-cart-btn.loading {
    opacity: 0.7;
}
.cod-single-button-container .add-to-cart-btn.added {
     background: linear-gradient(to right, #d1e7dd, #a3cfbb); /* Greenish gradient on success */
}