:root {
    --btg-border: #e7e7e7;
    --btg-bg: #fafafa;
    --btg-radius: 12px;
    --btg-accent: #2271b1;
}

.btg-box {
    border: 1px solid var(--btg-border);
    border-radius: var(--btg-radius);
    padding: 18px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    background: #fff;
}

.btg-title {
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 4px 0;
    color: #333;
}

.btg-subtitle {
    color: #666;
    font-size: 13px;
    margin-bottom: 14px;
    margin-top: 0;
}

.btg-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btg-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--btg-border);
    border-radius: 8px;
    background: var(--btg-bg);
    transition: border-color 0.2s ease;
}

.btg-item:has(.btg-check:checked) {
    border-color: var(--btg-accent);
}

.btg-item-image {
    flex-shrink: 0;
}

.btg-item-image img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    background: #fff;
}

.btg-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.btg-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    word-break: break-word;
}

.btg-item-price {
    font-size: 13px;
    color: #333;
}

.btg-item-price .woocommerce-Price-amount {
    font-weight: 600;
}

.btg-attrs {
    display: flex;
    flex-wrap: inherit;
    gap: 8px;
    margin-top: 6px;
}

.btg-quantity {
    width: 20% !important;
    min-width: 60px;
    padding: 4px 8px;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    -moz-appearance: textfield;
}

.btg-quantity::-webkit-outer-spin-button,
.btg-quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btg-variation-select {
    font-size: 13px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    max-width: 100%;
}

.btg-variation-select:focus {
    outline: none;
    border-color: var(--btg-accent);
}

.btg-main-label {
    font-size: 11px;
    color: #999;
    font-style: italic;
    margin-left: 6px;
}

.btg-footer {
    display: none;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    margin-top: 6px;
}

.btg-total-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.btg-total {
    font-size: 15px;
    color: #333;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.btg-total-label {
    font-weight: 500;
}

.btg-total-amount {
    font-weight: 700;
    margin-left: 4px;
}

.btg-total-old {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
    font-weight: 400;
    margin-left: 6px;
}

.btg-discount-badge {
    background: #e6f4ea;
    color: #137333;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.btg-total-eco {
    font-size: 12px;
    color: #666;
}

.btg-check {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--btg-accent);
}

.btg-unavailable {
    color: #dc3232;
    font-size: 12px;
    margin-top: 4px;
}

@media (max-width: 480px) {
    .btg-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

.btg-box .btg-loader,
.dunlo-takeback-box .btg-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--btg-radius);
}

.btg-box .btg-loader .spinner,
.dunlo-takeback-box .btg-loader .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--btg-accent);
    border-radius: 50%;
    animation: btg-spin 0.6s linear infinite;
}

.btg-box {
    position: relative;
}

.dunlo-takeback-box {
    position: relative;
}

@keyframes btg-spin {
    to {
        transform: rotate(360deg);
    }
}

.btg-tiered-link {
    color: var(--btg-accent);
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 14px;
    font-weight: bold;
}

.btg-tiered-link:hover {
    color: #135e96;
}

#btg-tiered-offcanvas .inner-off-canvas {
    padding: 0;
    position: relative;
}

#btg-tiered-offcanvas .cart-popup-title {
    margin-bottom: 16px;
}

#btg-tiered-offcanvas .cart-popup-title h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.mfp-off-canvas-tarifs .mfp-content {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    max-width: 400px !important;
    width: 90% !important;
    height: 100% !important;
    margin: 0 !important;
    background: #fff;
    border-radius: 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.mfp-off-canvas-tarifs .mfp-bg {
    opacity: 0.5;
}

.mfp-off-canvas-tarifs .mfp-close {
    top: 10px;
    right: 15px;
}

.btg-tiered-link.mfp-hide {
    display: none;
}

#btg-tiered-offcanvas.mfp-hide {
    display: none;
}

.btg-tiered-close {
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    position: absolute;
    top: 10px;
    right: 15px;
}

.btg-tiered-close:hover {
    color: #333;
}

#btg-tiered-offcanvas {
    background: #fff;
    padding: 24px;
    border-radius: var(--btg-radius);
    max-width: 400px;
    width: 90%;
    margin: 0 auto;
    position: relative;
}

#btg-tiered-offcanvas .inner-off-canvas {
    position: relative;
}

#btg-tiered-offcanvas .btg-tiered-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

#btg-tiered-offcanvas .btg-tiered-close:hover {
    color: #333;
}

#btg-tiered-offcanvas h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.btg-tiered-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.btg-tiered-table th,
.btg-tiered-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--btg-border);
}

.btg-tiered-table th {
    background: var(--btg-bg);
    font-weight: 600;
    color: #333;
}

.btg-tiered-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--btg-accent);
}


