/* Sozlesmeler Plugin - Modern & QX Theme Compatible Styles */

#sozlesmeler {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;
    width: 100% !important;
    /* Full width */
    clear: both !important;
    order: 2;
    /* Move below if parent is flex */
}

/* Force Checkbox Above and Contracts Below */
.woocommerce-terms-and-conditions-wrapper {
    display: flex !important;
    flex-direction: column !important;
}

#sozlesmeler {
    order: 2 !important;
}

.woocommerce-form__label-for-checkbox,
.woocommerce-privacy-policy-text {
    order: 1 !important;
    margin-bottom: 15px !important;
}


#sozlesmeler h2 {
    font-family: 'Roboto Condensed', sans-serif !important;
    font-weight: 700 !important;
    font-size: 24px !important;
    color: #374B5C !important;
    margin-top: 0 !important;
    margin-bottom: 25px !important;
    padding-bottom: 15px !important;
    border-bottom: 3px solid #7688A1 !important;
    display: block;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

#sozlesmeler h4 {
    font-family: 'Roboto Condensed', sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #7688A1 !important;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
    display: flex;
    align-items: center;
}

#sozlesmeler h4::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #FBC30D;
    border-radius: 50%;
    margin-right: 10px;
}

/* Individual Contract Boxes */
#woocontracts1,
#woocontracts2,
#woocontracts3,
.woocontractsic {
    width: 100% !important;
    height: 100px !important;
    padding: 15px 20px !important;
    background-color: #f8fafc !important;
    border: 1px solid #eef2f7 !important;
    border-radius: 10px !important;
    overflow-y: auto !important;
    font-size: 13.5px !important;
    line-height: 1.7 !important;
    color: #4a5568 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    margin-bottom: 15px;
}

/* Custom Scrollbar for Contract Boxes */
#woocontracts1::-webkit-scrollbar,
#woocontracts2::-webkit-scrollbar,
#woocontracts3::-webkit-scrollbar,
.woocontractsic::-webkit-scrollbar {
    width: 6px;
}

#woocontracts1::-webkit-scrollbar-track,
#woocontracts2::-webkit-scrollbar-track,
#woocontracts3::-webkit-scrollbar-track,
.woocontractsic::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

#woocontracts1::-webkit-scrollbar-thumb,
#woocontracts2::-webkit-scrollbar-thumb,
#woocontracts3::-webkit-scrollbar-thumb,
.woocontractsic::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

#woocontracts1::-webkit-scrollbar-thumb:hover,
#woocontracts2::-webkit-scrollbar-thumb:hover,
#woocontracts3::-webkit-scrollbar-thumb:hover,
.woocontractsic::-webkit-scrollbar-thumb:hover {
    background: #7688A1;
}

/* Checkbox Section Styling */
.custom-checkboxes {
    background: #f1f5f9 !important;
    padding: 18px 20px !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    margin: 20px 0 !important;
    transition: all 0.2s ease-in-out;
}

.custom-checkboxes:hover {
    background: #eef2f7 !important;
    border-color: #cbd5e0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.custom-checkboxes label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px;
    cursor: pointer;
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #374B5C !important;
    font-weight: 500 !important;
}

.custom-checkboxes input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #7688A1 !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    cursor: pointer;
    position: relative;
    margin-top: 2px !important;
    flex-shrink: 0;
}

.custom-checkboxes input[type="checkbox"]:checked {
    background-color: #7688A1 !important;
    border-color: #7688A1 !important;
}

.custom-checkboxes input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
}

.custom-checkboxes a {
    color: #7688A1;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid rgba(118, 136, 161, 0.2);
    transition: all 0.2s;
}

.custom-checkboxes a:hover {
    color: #374B5C;
    border-bottom-color: #374B5C;
}

/* Product List Table Styling */
.tg-wrap {
    margin: 20px 0;
    overflow-x: auto;
}

.tg {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.tg th {
    background-color: #7688A1 !important;
    color: #ffffff !important;
    padding: 15px !important;
    font-family: 'Roboto Condensed', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 13px !important;
    letter-spacing: 0.5px;
    text-align: left !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.tg td {
    padding: 12px 15px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #4a5568 !important;
    font-size: 14px !important;
}

.tg tr:last-child td {
    border-bottom: none !important;
}

.tg tr:nth-child(even) td {
    background-color: #fbfcfd !important;
}

/* Mail and Mobile Support */
@media screen and (max-width: 767px) {
    #sozlesmeler {
        padding: 15px;
    }

    #sozlesmeler h2 {
        font-size: 20px !important;
    }

    #woocontracts1,
    #woocontracts2,
    #woocontracts3 {
        height: 100px !important;
    }

    .tg td,
    .tg th {
        padding: 10px !important;
        font-size: 13px !important;
    }
}