/* Force the gallery above the summary, full width, without touching anything
   else inside .product (tabs, related products, etc. stay untouched). */
.single-product div.product .images {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 0 24px !important;
    display: block !important;
}
.single-product div.product .images img {
    width: 100% !important;
    height: auto !important;
    max-height: 650px;
    object-fit: cover;
    border-radius: 4px;
}
.single-product div.product .summary {
    width: 100% !important;
    max-width: 800px;
    float: none !important;
    clear: both;
    box-sizing: border-box;
    display: block !important;
}

/* Add-ons box - renders near the Add to Cart button via WooCommerce hook,
   so it works regardless of which template/theme system draws the rest of the page */
.wcl-addons-inline {
    width: 100%;
    max-width: 500px;
    margin: 16px 0;
}

.wcl-addons-box {
    background: #faf9f7;
    border: 1px solid #e5e0d8;
    border-radius: 6px;
    padding: 20px;
}
.wcl-addons-box h3 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 18px;
    border-bottom: 1px solid #e5e0d8;
    padding-bottom: 10px;
}
.wcl-addons-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.wcl-addon-item {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #e0dbd0;
}
.wcl-addon-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.wcl-addon-item label {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 4px 8px;
    align-items: center;
    cursor: pointer;
}
.wcl-addon-checkbox {
    grid-row: 1;
}
.wcl-addon-name {
    grid-row: 1;
    font-weight: 500;
}
.wcl-addon-tooltip-wrap {
    grid-row: 1;
    position: relative;
    display: inline-flex;
}
.wcl-addon-tooltip-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #d8cfa9;
    color: #5a4a1f;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}
.wcl-addon-tooltip-content {
    display: none;
    position: absolute;
    bottom: 22px;
    right: 0;
    background: #2c2c2c;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    padding: 8px 10px;
    border-radius: 4px;
    width: 200px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.wcl-addon-tooltip-wrap:hover .wcl-addon-tooltip-content,
.wcl-addon-tooltip-wrap.wcl-tooltip-active .wcl-addon-tooltip-content {
    display: block;
}
.wcl-addon-price {
    grid-row: 1;
    text-align: right;
    color: #a8842f;
    font-weight: 600;
    white-space: nowrap;
}

/* Live-updating total price shown above the Add to Cart button */
.wcl-total-price-display {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #2c2c2c;
}
.wcl-price-label {
    font-size: 15px;
    font-weight: 400;
    color: #777;
    margin-right: 6px;
}
