.wcgp-product-list {
    margin-bottom: 20px;
}
.wcgp-table {
    width: 100%;
    border-collapse: collapse;
}
.wcgp-table th, .wcgp-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.wcgp-thumb img {
    width: 60px;
    height: auto;
    border-radius: 4px;
    margin: 0 auto;
    display: block;
}
.wcgp-thumb {
    display: block;
    text-align: center;
    margin-bottom: 5px;
}
.wcgp-name {
    display: block;
    font-weight: 600;
    text-align: center;
}
.wcgp-price {
    text-align: right;
    white-space: nowrap;
}
.wcgp-quantity {
    width: 80px;
    text-align: right;
}
.wcgp-quantity input {
    width: 60px;
    text-align: center;
}
.wcgp-total-price-display {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: right;
}
#wcgp-validation-messages ul {
    margin: 10px 0;
    padding: 0;
    list-style: none;
}
#wcgp-validation-messages li {
    color: #28a745;
    margin-bottom: 5px;
}
.wcgp-included {
    color: #28a745;
    font-size: 0.9em;
}

/* Cart Styles */

/* Parent gift pack row */
.wcgp-parent-item {
    background-color: #f8f9fa;
    border-left: 3px solid var(--mm-color-primary, #3c5a3c);
}

.wcgp-parent-item td {
    border-bottom: none !important;
}

.wcgp-pack-price,
.wcgp-pack-subtotal {
    font-weight: 700;
    color: var(--mm-color-primary, #3c5a3c);
    font-size: 1.1em;
}

/* Child items styling - nested appearance */
.wcgp-child-item {
    background-color: #fafafa;
    border-left: 3px solid var(--mm-color-primary, #3c5a3c);
}

.wcgp-child-item td {
    border-bottom: 1px dashed #e0e0e0 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.wcgp-child-item td.product-thumbnail {
    padding-left: 20px !important;
}

.wcgp-child-item td.product-thumbnail img {
    max-width: 50px !important;
    height: auto !important;
    opacity: 0.9;
}

.wcgp-child-item td.product-name {
    padding-left: 10px !important;
    position: relative;
}

.wcgp-child-item td.product-name:before {
    content: "└";
    position: absolute;
    left: -5px;
    color: #999;
    font-family: monospace;
    font-size: 1.1em;
}

.wcgp-child-item td.product-name a {
    font-size: 0.9em;
    color: #666;
}

/* Child item prices */
.wcgp-child-price,
.wcgp-child-subtotal {
    color: #777;
    font-size: 0.9em;
}

.wcgp-locked-qty {
    color: #777;
    font-size: 0.9em;
    display: inline-block;
    padding: 4px 8px;
    background: #f0f0f0;
    border-radius: 3px;
}

/* Last child item has a solid bottom border */
.wcgp-child-item:has(+ tr:not(.wcgp-child-item)) td,
.wcgp-child-item:last-child td {
    border-bottom: 1px solid #ddd !important;
}

/* Quantity Buttons */
.mm-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.mm-qty-btn {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1.2em;
    line-height: 1;
}
.mm-qty-btn.disabled,
.mm-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}
.mm-qty-input {
    border: none;
    text-align: center;
    width: 40px;
    -moz-appearance: textfield;
    appearance: textfield;
}
.mm-qty-input::-webkit-outer-spin-button,
.mm-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Disabled Add to Cart Button */
.single_add_to_cart_button.disabled,
.single_add_to_cart_button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ccc !important;
    color: #666 !important;
    pointer-events: none;
}
