/* From cart.html & User Screenshot */

/* Hide "Update Cart" button as per user request (Auto-update logic implemented) */
button[name="update_cart"] {
    display: none !important;
}

/* Container & layout adjustments for standard Woo Cart */
.woocommerce-cart-form__cart-item .product-name a {
    font-size: 16px;
    font-weight: 800;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

/* --- Variation Display as Buttons --- */
/* Completely HIDE the original variation data list since we have the selectors now */
.woocommerce-cart-form__cart-item dl.variation {
    display: none !important;
}

/* --- Custom Fields Styling --- */
.wcpa_form_outer {
    margin-top: 15px !important;
    padding-top: 0 !important;
    border-top: none !important;
}

.wcpa_row {
    margin-bottom: 15px !important;
}

.wcpa_field_label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #444;
    margin-bottom: 6px !important;
    display: block;
}

.wcpa_required_ast {
    color: #e74c3c !important;
    margin-right: 3px;
}

.ym-live-input {
    width: 100%;
    padding: 10px 12px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    color: #333;
    background-color: #fff;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) inset;
}

.ym-live-input:focus {
    border-color: #f7ce46 !important;
    box-shadow: 0 0 0 3px rgba(247, 206, 70, 0.2) !important;
    outline: none;
}

.ym-live-input::placeholder {
    color: #9aa5b1;
}

/* Input Error State */
.ym-input-error {
    border-color: #e74c3c !important;
    background-color: #fff8f8 !important;
}

/* Pending Choice Highlight */

.ym-pending-choice {
    background-color: #fff !important;
}

.ym-pending-alert {
    color: #e74c3c;
    font-weight: bold;
    font-size: 13px;
    display: inline-block;
    background: #ffebeb;
    padding: 4px 10px;
    border-radius: 4px;
    margin-top: 8px;
}

.ym-resolve-btn {
    display: inline-block;
    margin-top: 5px;
    font-size: 12px !important;
    padding: 4px 10px !important;
}

/* --- Cart Table Cleanup (for standard Woo) --- */
.shop_table {
    border-collapse: separate;
    border-spacing: 0 15px;
    border: none !important;
    background: transparent !important;
}

.shop_table thead th {
    border-bottom: none !important;
    text-align: right;
    color: #777;
    font-weight: 800;
}

.cart_item {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border-radius: 12px;
}

.cart_item td {
    border-top: 1px solid #f1f1f1 !important;
    border-bottom: 1px solid #f1f1f1 !important;
    vertical-align: middle;
}

.cart_item td:first-child {
    border-right: 1px solid #f1f1f1 !important;
    border-radius: 0 12px 12px 0;
}

.cart_item td:last-child {
    border-left: 1px solid #f1f1f1 !important;
    border-radius: 12px 0 0 12px;
}

.product-thumbnail img {
    border-radius: 8px;
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
    border: 1px solid #eee;
}

.product-remove a {
    color: #ccc !important;
    font-size: 24px !important;
    font-weight: 300 !important;
    border: 1px solid #eee !important;
    border-radius: 50% !important;
    width: 24px;
    height: 24px;
    line-height: 22px !important;
    display: block;
    text-align: center;
}

.product-remove a:hover {
    color: red !important;
    border-color: red !important;
    background: #fff;
}

/* --- Variation Buttons (GET Method) --- */
.ym-var-btn {
    display: inline-block;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
    text-decoration: none !important;
}

.ym-var-btn:hover {
    border-color: #999;
    color: #333;
    background: #f9f9f9;
}

.ym-var-btn.active {
    background-color: #f7ce46;
    border-color: #e0b92e;
    color: #000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    cursor: default;
}

/* Old Radio Selectors (Deprecated but kept if needed for transition, though PHP changed) */
.ym-radio-label {
    display: none;
}