/* Sözleşme Onay - Checkout */

.wcc-checkout-contracts {
    margin: 18px 0 8px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

/* Kart satırı */
.wcc-contract-agree {
    border-bottom: 1px solid #f0f0f0;
}

.wcc-contract-agree:last-of-type {
    border-bottom: none;
}

/* Onay satırı */
.wcc-agree-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    position: relative;
    margin: 0 !important;
    padding: 14px 16px !important;
    transition: background 0.15s;
}

.wcc-agree-label:hover {
    background: #fafbfc;
}

.wcc-agree-check {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom checkbox */
.wcc-agree-tick {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1.5px solid #d1d5db;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: all 0.15s;
    flex-shrink: 0;
    margin-top: 1px;
}

.wcc-agree-tick svg {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.12s;
}

.wcc-agree-check:checked ~ .wcc-agree-tick {
    background: #111;
    border-color: #111;
}

.wcc-agree-check:checked ~ .wcc-agree-tick svg {
    opacity: 1;
    transform: scale(1);
}

/* İçerik alanı — ikon + metin yan yana */
.wcc-agree-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.wcc-agree-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    flex-shrink: 0;
}

.wcc-agree-check:checked ~ .wcc-agree-content .wcc-agree-icon {
    background: #f0fdf4;
    color: #16a34a;
}

.wcc-agree-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

/* Metin */
.wcc-agree-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.45;
}

/* Açıklama */
.wcc-agree-desc {
    font-size: 11.5px;
    color: #9ca3af;
    line-height: 1.3;
}

/* Sözleşme adı linki */
.wcc-agree-read {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #111 !important;
    font-weight: 600 !important;
    font-size: inherit !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    text-decoration-color: #d1d5db !important;
    text-underline-offset: 2px !important;
    font-family: inherit !important;
    display: inline !important;
    line-height: inherit !important;
    box-shadow: none !important;
    outline: none !important;
    min-height: auto !important;
    min-width: auto !important;
    transition: text-decoration-color 0.15s, color 0.15s !important;
}

.wcc-agree-read:hover {
    text-decoration-color: #111 !important;
    color: #000 !important;
}

/* ---- Modal ---- */
.wcc-contract-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.wcc-contract-modal-inner {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 640px;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0,0,0,0.18);
    overflow: hidden;
}

.wcc-contract-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.wcc-contract-modal-header h3 {
    font-size: 15px; font-weight: 700; color: #111;
    margin: 0; padding: 0; border: none; background: none;
}

.wcc-contract-modal-close {
    background: none !important; border: none !important;
    padding: 5px !important; margin: 0 !important;
    cursor: pointer; color: #bbb; display: flex;
    align-items: center; justify-content: center;
    border-radius: 6px; transition: all 0.15s;
    min-height: auto !important; min-width: auto !important;
    box-shadow: none !important; outline: none !important; line-height: 1 !important;
}

.wcc-contract-modal-close:hover { background: #f5f5f5 !important; color: #666; }

.wcc-contract-modal-body {
    flex: 1; overflow-y: auto; padding: 20px;
    -webkit-overflow-scrolling: touch;
    font-size: 13px; color: #555; line-height: 1.7;
}

.wcc-contract-modal-body h2 {
    font-size: 14px !important; font-weight: 700 !important; color: #111 !important;
    margin: 22px 0 8px !important; padding: 0 !important; border: none !important; background: none !important;
}
.wcc-contract-modal-body h2:first-child { margin-top: 0 !important; }
.wcc-contract-modal-body h3 {
    font-size: 13px !important; font-weight: 600 !important; color: #333 !important;
    margin: 14px 0 6px !important; padding: 0 !important; border: none !important; background: none !important;
}
.wcc-contract-modal-body p { margin-bottom: 8px; }
.wcc-contract-modal-body ul, .wcc-contract-modal-body ol { margin: 0 0 12px 16px; font-size: 12.5px; }
.wcc-contract-modal-body li { margin-bottom: 3px; }
.wcc-contract-modal-body table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 10px 0; border: 1px solid #eee; }
.wcc-contract-modal-body th, .wcc-contract-modal-body td { padding: 7px 10px; border: 1px solid #eee; text-align: left; }
.wcc-contract-modal-body th { background: #fafafa; font-weight: 600; color: #111; font-size: 11px; }

.wcc-contract-modal-footer {
    display: flex; align-items: center; justify-content: flex-end;
    padding: 12px 20px; border-top: 1px solid #eee; flex-shrink: 0; gap: 12px;
}

.wcc-modal-company { font-size: 11px; color: #bbb; margin-right: auto; }

.wcc-modal-accept-btn {
    background: #111 !important; color: #fff !important; border: none !important;
    padding: 9px 20px !important; border-radius: 6px !important;
    font-size: 13px !important; font-weight: 600 !important;
    cursor: pointer !important; white-space: nowrap !important;
    font-family: inherit !important; transition: background 0.15s !important;
    box-shadow: none !important; outline: none !important;
    min-height: auto !important; line-height: 1.4 !important;
}
.wcc-modal-accept-btn:hover { background: #333 !important; }

/* ---- Sipariş Bilgileri Kutusu ---- */
.wcc-contract-order-box {
    background: #fafafa; border: 1px solid #eee; border-radius: 8px;
    padding: 16px; margin-bottom: 20px; font-size: 12.5px;
}
.wcc-contract-order-header {
    font-size: 11px; font-weight: 700; color: #999; margin-bottom: 12px;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.wcc-contract-order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wcc-co-section { display: flex; flex-direction: column; gap: 1px; }
.wcc-co-label { font-size: 10px; font-weight: 600; color: #aaa; text-transform: uppercase; letter-spacing: 0.05em; }
.wcc-co-val { font-size: 12.5px; font-weight: 500; color: #333; word-break: break-word; }
.wcc-contract-order-divider { height: 1px; background: #eee; margin: 10px 0; }
.wcc-co-product { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; gap: 8px; }
.wcc-co-pname { font-size: 12.5px; color: #333; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wcc-co-qty { color: #aaa; font-size: 11px; }
.wcc-co-pprice { font-size: 12.5px; font-weight: 600; color: #111; white-space: nowrap; }
.wcc-co-total { font-size: 12px; color: #888; }
.wcc-co-total span:last-child { font-weight: 600; color: #333; }
.wcc-co-grand { padding-top: 8px; border-top: 1px solid #eee; margin-top: 2px; }
.wcc-co-grand span:first-child { font-weight: 700; color: #111; font-size: 12.5px; }
.wcc-co-grand span:last-child { font-weight: 700; color: #111; font-size: 14px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .wcc-contract-modal { padding: 0; align-items: flex-end; }
    .wcc-contract-modal-inner { max-width: 100%; max-height: 88vh; border-radius: 14px 14px 0 0; animation: wccSlideUp 0.25s ease; }
    @keyframes wccSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
    .wcc-contract-modal-header { padding: 14px 16px; position: sticky; top: 0; background: #fff; z-index: 2; }
    .wcc-contract-modal-header h3 { font-size: 14px; }
    .wcc-contract-modal-body { padding: 16px; font-size: 12.5px; }
    .wcc-contract-modal-footer { padding: 12px 16px; }
    .wcc-modal-company { display: none; }
    .wcc-modal-accept-btn { width: 100% !important; text-align: center !important; padding: 11px 20px !important; }
}

@media (max-width: 480px) {
    .wcc-agree-label { padding: 12px 14px !important; gap: 10px; }
    .wcc-agree-text { font-size: 12px; }
    .wcc-agree-desc { font-size: 11px; }
    .wcc-agree-tick { width: 16px; height: 16px; min-width: 16px; }
    .wcc-agree-icon { width: 28px; height: 28px; min-width: 28px; border-radius: 6px; }
    .wcc-agree-icon svg { width: 15px; height: 15px; }
    .wcc-contract-order-grid { grid-template-columns: 1fr; gap: 8px; }
    .wcc-contract-order-box { padding: 12px; }
}
