/* =========================================================
   AGROAKTÜEL - ÇEREZ TERCİH SİSTEMİ
   ========================================================= */


/* SAYFANIN ALTINDAKİ İLK ÇEREZ BİLDİRİMİ */

#agro-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99990;

    background: #ffffff;
    border-top: 4px solid #154212;

    box-shadow:
        0 -8px 30px rgba(0, 0, 0, 0.14);

    font-family: "Inter", Arial, sans-serif;
    color: #1a1c19;
}


.agro-cookie-banner-inner {
    width: 1180px;
    max-width: calc(100% - 40px);
    min-height: 120px;

    margin: 0 auto;
    padding: 22px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 35px;
}


.agro-cookie-banner-text {
    flex: 1;
}


.agro-cookie-banner-title {
    margin: 0 0 7px 0;

    color: #002b02;

    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
}


.agro-cookie-banner-description {
    margin: 0;

    max-width: 720px;

    color: #42493e;

    font-size: 13px;
    line-height: 20px;
}


.agro-cookie-banner-description a {
    color: #002b02;
    font-weight: 600;
    text-decoration: underline;
}


.agro-cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;

    flex-shrink: 0;
}


/* =========================================================
   BUTONLAR
   ========================================================= */

.agro-cookie-btn {
    min-height: 42px;

    padding: 10px 17px;

    border-radius: 4px;
    border: 1px solid transparent;

    font-family: "Inter", Arial, sans-serif;

    font-size: 13px;
    line-height: 18px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}


/* TÜMÜNÜ KABUL ET */

.agro-cookie-btn-accept {
    background: #154212;
    border-color: #154212;
    color: #ffffff;
}

.agro-cookie-btn-accept:hover {
    background: #002b02;
    border-color: #002b02;
}


/* TÜMÜNÜ REDDET */

.agro-cookie-btn-reject {
    background: #800000;
    border-color: #800000;
    color: #ffffff;
}

.agro-cookie-btn-reject:hover {
    background: #650000;
    border-color: #650000;
}


/* TERCİHLER */

.agro-cookie-btn-settings {
    background: #ffffff;
    border-color: #72796e;
    color: #002b02;
}

.agro-cookie-btn-settings:hover {
    background: #f4f4ee;
    border-color: #154212;
}


/* TERCİHLERİ KAYDET */

.agro-cookie-btn-save {
    background: #154212;
    border-color: #154212;
    color: #ffffff;
}

.agro-cookie-btn-save:hover {
    background: #002b02;
    border-color: #002b02;
}


/* =========================================================
   ARKA PLAN KARARTMA
   ========================================================= */

#agro-cookie-overlay {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 99995;

    background: rgba(0, 0, 0, 0.58);
}


/* =========================================================
   TERCİH PENCERESİ
   ========================================================= */

#agro-cookie-modal {
    display: none;

    position: fixed;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    z-index: 100000;

    width: 650px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 50px);

    overflow-y: auto;

    background: #ffffff;

    border-radius: 6px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.28);

    font-family: "Inter", Arial, sans-serif;

    color: #1a1c19;
}


/* MODAL HEADER */

.agro-cookie-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding: 24px 26px 18px 26px;

    border-bottom: 1px solid #e2e3dc;
}


.agro-cookie-modal-header h2 {
    margin: 0 0 6px 0;

    color: #002b02;

    font-size: 22px;
    line-height: 28px;
    font-weight: 700;
}


.agro-cookie-modal-header p {
    margin: 0;

    color: #42493e;

    font-size: 13px;
    line-height: 20px;
}


.agro-cookie-close {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f4f4ee;

    border: 1px solid #c2c9bb;
    border-radius: 4px;

    color: #002b02;

    font-size: 22px;

    cursor: pointer;
}


.agro-cookie-close:hover {
    background: #e8e8e3;
}


/* =========================================================
   ÇEREZ KATEGORİLERİ
   ========================================================= */

.agro-cookie-categories {
    padding: 10px 26px;
}


.agro-cookie-category {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 25px;

    padding: 18px 0;

    border-bottom: 1px solid #e8e8e3;
}


.agro-cookie-category:last-child {
    border-bottom: 0;
}


.agro-cookie-category-content {
    flex: 1;
}


.agro-cookie-category-title {
    margin: 0 0 5px 0;

    color: #002b02;

    font-size: 15px;
    line-height: 21px;
    font-weight: 700;
}


.agro-cookie-category-description {
    margin: 0;

    color: #42493e;

    font-size: 12px;
    line-height: 19px;
}


/* =========================================================
   TOGGLE
   ========================================================= */

.agro-cookie-switch {
    position: relative;

    display: inline-block;

    width: 48px;
    height: 26px;

    flex-shrink: 0;

    margin-top: 2px;
}


.agro-cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}


.agro-cookie-slider {
    position: absolute;

    cursor: pointer;

    inset: 0;

    background: #b9beb6;

    border-radius: 30px;

    transition: 0.2s;
}


.agro-cookie-slider::before {
    content: "";

    position: absolute;

    width: 20px;
    height: 20px;

    left: 3px;
    top: 3px;

    background: #ffffff;

    border-radius: 50%;

    transition: 0.2s;

    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.25);
}


.agro-cookie-switch input:checked + .agro-cookie-slider {
    background: #154212;
}


.agro-cookie-switch input:checked + .agro-cookie-slider::before {
    transform: translateX(22px);
}


/* GEREKLİ ÇEREZLER - KAPATILAMAZ */

.agro-cookie-switch input:disabled + .agro-cookie-slider {
    background: #154212;
    cursor: not-allowed;
    opacity: 0.75;
}


/* =========================================================
   MODAL FOOTER
   ========================================================= */

.agro-cookie-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 18px 26px 24px 26px;

    border-top: 1px solid #e2e3dc;

    background: #fafaf4;
}


.agro-cookie-modal-footer-left {
    font-size: 12px;
    line-height: 18px;
    color: #42493e;
}


.agro-cookie-modal-footer-left a {
    color: #002b02;
    font-weight: 600;
    text-decoration: underline;
}


.agro-cookie-modal-footer-actions {
    display: flex;
    gap: 10px;
}


/* =========================================================
   GİZLEME
   ========================================================= */

.agro-cookie-hidden {
    display: none !important;
}


/* =========================================================
   SABİT MASAÜSTÜ GÖRÜNÜMÜ KULLANAN AGROAKTÜEL İÇİN
   KÜÇÜK EKRAN KORUMASI
   ========================================================= */

@media (max-width: 700px) {

    .agro-cookie-banner-inner {
        width: calc(100% - 30px);
        max-width: none;

        flex-direction: column;
        align-items: stretch;

        gap: 16px;

        padding: 18px 0;
    }


    .agro-cookie-banner-actions {
        flex-wrap: wrap;
    }


    .agro-cookie-btn {
        flex: 1;
        min-width: 140px;
    }


    #agro-cookie-modal {
        width: calc(100vw - 24px);
    }


    .agro-cookie-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }


    .agro-cookie-modal-footer-actions {
        flex-wrap: wrap;
    }

}


/* =========================================================
   AGROAKTÜEL - BÜYÜK VE MODERN ÇEREZ PENCERESİ
   Mevcut CSS dosyasının en altına eklenecek
   ========================================================= */

/* Alt taraftaki küçük çerez bandını kaldır */
#agro-cookie-banner {
    display: none !important;
}

/* Arka planı karart */
#agro-cookie-overlay {
    background: rgba(8, 18, 10, 0.72);
    z-index: 999995;
}

/* Ana pencere */
#agro-cookie-modal {
    width: 760px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);

    border-radius: 16px;
    border: 1px solid #e0e8df;

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.35);

    z-index: 1000000;

    font-family: "Inter", Arial, sans-serif;
}

/* Üst başlık */
.agro-cookie-modal-header {
    padding: 30px 34px 24px;
    gap: 22px;

    background: #f7faf5;
    border-bottom: 2px solid #dce8d9;
}

.agro-cookie-modal-header h2 {
    font-size: 27px;
    line-height: 34px;
    font-weight: 800;
    color: #154212;
    margin-bottom: 12px;
}

.agro-cookie-modal-header p {
    font-size: 15px;
    line-height: 24px;
    color: #42493e;
}

/* Çerez kategorileri */
.agro-cookie-categories {
    padding: 12px 34px;
}

.agro-cookie-category {
    gap: 28px;
    padding: 22px 0;
}

.agro-cookie-category-title {
    font-size: 17px;
    line-height: 24px;
    font-weight: 750;
    margin-bottom: 8px;
}

.agro-cookie-category-description {
    font-size: 14px;
    line-height: 23px;
}

/* Açma / kapatma anahtarları */
.agro-cookie-switch {
    width: 54px;
    height: 30px;
    margin-top: 4px;
}

.agro-cookie-slider::before {
    width: 24px;
    height: 24px;
}

.agro-cookie-switch input:checked
+ .agro-cookie-slider::before {
    transform: translateX(24px);
}

/* Alt bölüm */
.agro-cookie-modal-footer {
    padding: 24px 34px 28px;
    gap: 22px;
    background: #f7faf5;
}

.agro-cookie-modal-footer-left {
    font-size: 13px;
    line-height: 21px;
}

.agro-cookie-modal-footer-actions {
    gap: 12px;
}

/* Büyük butonlar */
#agro-cookie-modal .agro-cookie-btn {
    min-height: 50px;
    padding: 13px 22px;

    border-radius: 8px;

    font-size: 14px;
    line-height: 20px;
    font-weight: 750;

    white-space: nowrap;
}

/* Butonlara klavye ile erişim */
#agro-cookie-modal button:focus-visible,
#agro-cookie-modal input:focus-visible
+ .agro-cookie-slider {
    outline: 3px solid #77a95d;
    outline-offset: 3px;
}

/* Küçük ekranlar */
@media (max-width: 700px) {

    #agro-cookie-modal {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 12px;
    }

    .agro-cookie-modal-header {
        padding: 22px 20px 18px;
    }

    .agro-cookie-modal-header h2 {
        font-size: 23px;
        line-height: 30px;
    }

    .agro-cookie-modal-header p {
        font-size: 14px;
        line-height: 22px;
    }

    .agro-cookie-categories {
        padding: 8px 20px;
    }

    .agro-cookie-category {
        gap: 16px;
        padding: 17px 0;
    }

    .agro-cookie-category-title {
        font-size: 15px;
    }

    .agro-cookie-category-description {
        font-size: 13px;
        line-height: 21px;
    }

    .agro-cookie-modal-footer {
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .agro-cookie-modal-footer-actions {
        display: flex;
        flex-direction: column;
    }

    #agro-cookie-modal .agro-cookie-btn {
        width: 100%;
    }
}
