/*
 * paket-detay.jsp: scroll edince açılan sabit alt paket çubuğu (#footer-product-container)
 * Yeni tasarım. Geri almak için paket-detay.jsp içindeki bu dosyanın <link> satırını
 * ve bu dosyayı silmek yeterli (package-detail-page.css'e dokunulmadı).
 * Mobilde (<=768px) çubuk zaten package-detail-page.css ile gizli.
 */

#footer-product-container {
    height: auto !important;
    background-color: #ffffff !important;
    border-top: 3px solid #ffd026 !important;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 30px rgba(11, 34, 57, 0.12) !important;
}

#footer-product-container .footer-package-detail-content > .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 84px 14px 28px !important; /* sağda yukarı çık butonuna yer bırakır */
}

/* Bootstrap float kolonlarını tek satırlık flex düzene çevirir */
#footer-product-container .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 24px;
    margin: 0 !important;
}

#footer-product-container .row:before,
#footer-product-container .row:after {
    display: none !important;
}

#footer-product-container .row > [class*="col-"] {
    float: none !important;
    width: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    position: static !important;
}

#footer-product-container .row > div:nth-child(1) { flex: 0 0 auto; }
#footer-product-container .row > div:nth-child(2) { flex: 0 1 210px; min-width: 0; }
#footer-product-container .row > div:nth-child(3) { flex: 1 1 auto; min-width: 0; }
#footer-product-container .row > div:nth-child(4) {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
#footer-product-container .row > div:nth-child(5) { flex: 0 0 auto; }

/* Görsel ve paket adı */
#footer-product-container .footer-image-container {
    position: static !important;
    width: auto !important;
    text-align: left !important;
}

#footer-product-container .footer-container-image {
    display: block;
    height: 78px !important;
    width: auto;
    padding: 0 !important;
    border-radius: 10px;
    object-fit: contain;
}

#footer-product-container .footer-description-container {
    position: static !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.2px;
    color: #0b2239;
}

/* Ödeme yöntemleri kutusu */
#footer-product-container .footer-raunt-payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 18px;
    padding: 10px 14px !important;
    background-color: #f8fafc;
    border-radius: 12px;
}

#footer-product-container .footer-raunt-payment-methods .radio {
    margin: 0 !important;
    display: block;
}

/* Sadece Kredi Kartı (5) ve Türk Telekom (1) seçenekleri görünür; DOM aynı kaldığı için JS etkilenmez */
#footer-product-container .footer-raunt-payment-methods .radio:not([paymenttype="5"]):not([paymenttype="1"]) {
    display: none !important;
}

/* Kredi Kartı seçenekleri sol sütunda, Türk Telekom seçenekleri (12 ve 24 taksit) sağ sütunda alt alta */
#footer-product-container .footer-raunt-payment-methods .radio[paymenttype="5"] { grid-column: 1; }
#footer-product-container .footer-raunt-payment-methods .radio[paymenttype="1"] { grid-column: 2; }

/* Türk Telekom seçeneği yoksa Kredi Kartı seçeneği kutunun ortasında durur */
#footer-product-container .footer-raunt-payment-methods:not(:has(.radio[paymenttype="1"])) {
    grid-template-columns: auto;
    justify-content: center;
}

#footer-product-container .footer-raunt-payment-methods label {
    display: block;
    margin: 0 !important;
    padding-left: 20px;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    line-height: 1.3;
    color: #334155;
}

#footer-product-container .footer-raunt-payment-methods label b {
    color: #0b2239;
}

#footer-product-container .footer-raunt-payment-methods input[type="radio"] {
    margin: 2px 0 0 -20px !important;
    accent-color: #0b2239;
}

/* Fiyat */
#footer-product-container .footer-product-price {
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
    font-size: 30px !important;
    font-weight: 800;
    line-height: 1.1 !important;
    letter-spacing: -0.5px;
    color: #0b2239;
    white-space: nowrap;
}

#footer-product-container .footer-product-price .old-price {
    display: none !important; /* eski fiyat footer çubuğunda gösterilmez */
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 0 2px 0 !important;
    font-size: 15px !important;
    font-weight: 600;
    letter-spacing: 0;
    color: #94a3b8;
}

#footer-product-container .footer-product-price .old-price-text {
    font-size: 15px !important;
    color: #94a3b8;
}

#footer-product-container .footer-product-price .old-price-text:after {
    left: -2px;
    top: 50%;
    width: calc(100% + 4px);
    height: 2px;
    background-color: #ef4444;
    transform: rotate(-8deg);
}

#footer-product-container .footer-product-price .package-detail-new-price {
    font-size: inherit;
    color: #0b2239;
}

#footer-product-container .classroom-select {
    width: 200px;
    height: 34px;
    margin-top: 6px;
    padding: 4px 8px;
    font-size: 12.5px;
    border-radius: 8px;
}

/* Satın al butonu */
#footer-product-container .footer-buy-package-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 170px;
    height: 46px;
    margin: 0 !important;
    padding: 0 26px !important;
    border: none !important;
    border-radius: 30px !important;
    background-color: #ffd026 !important;
    color: #0b2239 !important;
    font-size: 15px !important;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(255, 208, 38, 0.45) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#footer-product-container .footer-buy-package-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 208, 38, 0.6) !important;
}

@media (max-width: 1199px) {
    #footer-product-container .row { gap: 16px; }
    #footer-product-container .footer-package-detail-content > .container-fluid { padding: 12px 76px 12px 18px !important; }
    #footer-product-container .footer-container-image { height: 62px !important; }
    #footer-product-container .row > div:nth-child(2) { flex-basis: 140px; }
    #footer-product-container .footer-description-container { font-size: 15px !important; }
    #footer-product-container .footer-product-price { font-size: 24px !important; }
    #footer-product-container .footer-buy-package-button { min-width: 140px; padding: 0 18px !important; }
}

@media (max-width: 991px) {
    #footer-product-container .row > div:nth-child(1),
    #footer-product-container .row > div:nth-child(2) { display: none !important; }
    #footer-product-container .footer-raunt-payment-methods label { font-size: 10.5px !important; }
}
