/* =============================================
   Golden Chef - Esnek Bilet Hakkı v3
   ============================================= */

tr.gcg-guvence-row > td {
    padding: 0 16px 16px !important;
    border-top: none !important;
    background: transparent;
}

tr.gcg-guvence-row {
    border-top: none !important;
}

.gcg-row-inner {
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 14px 18px;
    transition: all 0.25s ease;
    position: relative;
}

.gcg-row-inner.gcg-active {
    background: linear-gradient(135deg, #f0faf4 0%, #f5fcf7 100%);
    border-style: solid;
    border-color: #2e9e5a;
    border-left: 3px solid #2e9e5a;
}

.gcg-row-inner:hover {
    border-color: #2e9e5a;
}

.gcg-row-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.gcg-shield-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: #2e9e5a;
    margin-top: 2px;
}

.gcg-row-content {
    flex: 1;
    min-width: 0;
}

.gcg-main-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    flex-wrap: wrap;
    margin: 0 !important;
    padding: 0 !important;
}

.gcg-enable-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.gcg-checkmark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #bbb;
    border-radius: 4px;
    background: #fff;
    position: relative;
    transition: all 0.2s ease;
}

.gcg-checkmark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}

.gcg-enable-checkbox:checked ~ .gcg-checkmark {
    background: #2e9e5a;
    border-color: #2e9e5a;
}

.gcg-enable-checkbox:checked ~ .gcg-checkmark::after {
    transform: rotate(45deg) scale(1);
}

.gcg-label-text {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.gcg-price-badge {
    display: inline-flex;
    align-items: center;
    background: #2e9e5a !important;
    color: #fff !important;
    font-size: 9px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 8px;
    white-space: nowrap;
    letter-spacing: 0.1px;
}

.gcg-price-badge,
.gcg-price-badge * {
    color: #fff !important;
}

.gcg-desc {
    margin: 6px 0 0 28px;
    font-size: 12px;
    line-height: 1.5;
    color: #888;
}

.gcg-qty-selector {
    margin: 12px 0 0 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gcg-qty-selector.gcg-hidden {
    display: none;
}

.gcg-qty-label {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.gcg-qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 6px;
}

.gcg-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    line-height: 1;
    padding: 0;
}

.gcg-qty-btn:hover {
    background: #2e9e5a;
    color: #fff;
}

.gcg-qty-value {
    width: 36px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #2e9e5a;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    line-height: 32px;
}

.gcg-qty-total {
    font-size: 13px;
    font-weight: 600;
    color: #2e9e5a;
    margin-left: 4px;
}

tr.gcg-guvence-row.gcg-updating .gcg-row-inner {
    opacity: 0.5;
    pointer-events: none;
}

tr.gcg-guvence-row.gcg-updating .gcg-row-inner::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 18px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #2e9e5a;
    border-top-color: transparent;
    border-radius: 50%;
    animation: gcg-spin 0.6s linear infinite;
}

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

.gcg-checkout-guvence-row td {
    font-size: 13px;
    color: #2e9e5a;
    font-style: italic;
}

.gcg-order-guvence {
    margin: 6px 0 0;
    padding: 6px 10px;
    background: #f0faf4;
    border-radius: 4px;
    font-size: 13px;
}

/* Esnek ürünü mini cart'ta gizle */
.gcg-hidden-mini-cart {
    display: none !important;
}

@media (max-width: 768px) {
    tr.gcg-guvence-row > td {
        padding: 0 10px 12px !important;
    }

    .gcg-row-inner {
        padding: 12px 14px;
    }

    .gcg-shield-icon {
        width: 18px;
        height: 18px;
    }

    .gcg-label-text {
        font-size: 13px;
    }

    .gcg-price-badge {
        font-size: 8px;
        padding: 1px 5px;
    }

    .gcg-desc {
        margin-left: 0;
        font-size: 11px;
    }

    .gcg-qty-selector {
        margin-left: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .gcg-qty-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .gcg-qty-value {
        width: 30px;
        font-size: 14px;
        line-height: 28px;
    }
}
