/* ============================================================
   ELDEN TAKSIT PRO v1.1 - MINIMAL PREMIUM PRODUCT DETAIL UI
   Core cart/checkout/order logic is handled by PHP.
   ============================================================ */

.elden-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    clear: both;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 18px;
    padding: 18px;
    margin: 22px 0;
    box-sizing: border-box;
    font-family: inherit;
    border: 1px solid #e8edf5;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .055);
}

.elden-wrapper::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #b90000, #f97316);
}

.elden-top-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.elden-top-methods.single-method {
    grid-template-columns: 1fr;
}

.method-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 15px 12px;
    text-align: center;
    cursor: pointer;
    transition: all .18s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    min-height: 78px;
    box-shadow: 0 6px 18px rgba(15,23,42,.035);
}

.method-card .m-title {
    font-size: 13px;
    color: #64748b;
    font-weight: 700;
}

.method-card .m-price {
    font-size: 19px;
    font-weight: 900;
    color: #111827;
}

.method-card:hover {
    border-color: #f97316;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15,23,42,.07);
}

.method-card.active {
    background: linear-gradient(135deg, #b90000 0%, #f97316 100%);
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(185,0,0,.16), 0 7px 16px rgba(249,115,22,.14);
}

.method-card.active .m-title,
.method-card.active .m-price {
    color: #ffffff;
}

.elden-contract-headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.elden-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .75px;
    text-transform: uppercase;
    color: #ea580c;
    margin-bottom: 4px;
}

.elden-kicker::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #f97316;
    box-shadow: 0 0 0 4px rgba(249,115,22,.12);
}

.elden-contract-headline h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
    color: #101827;
}

.elden-contract-headline p {
    margin: 4px 0 0;
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
}

.elden-delivery-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #fdba74;
    color: #9a3412;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.elden-delivery-badge::before {
    content: "✓";
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #f97316;
    color: #fff;
    font-size: 11px;
    line-height: 1;
}

.elden-divider {
    text-align: center;
    margin: 17px 0 14px;
    position: relative;
    z-index: 1;
}

.elden-divider::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0 18%, #e2e8f0 82%, transparent);
    z-index: -1;
}

.elden-divider span {
    background: #f8fafc;
    padding: 0 14px;
    color: #ea580c;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .55px;
    text-transform: uppercase;
}

.elden-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.elden-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 14px;
    cursor: pointer;
    transition: all .18s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    gap: 7px;
    position: relative;
    min-height: 112px;
    box-shadow: 0 7px 22px rgba(15,23,42,.04);
}

.elden-card:hover {
    border-color: #fb923c;
    transform: translateY(-2px);
    box-shadow: 0 13px 28px rgba(15,23,42,.08);
}

.elden-card.active {
    border-color: #f97316;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    box-shadow: 0 14px 30px rgba(249,115,22,.13);
}

.elden-card.is-popular {
    border-color: #fdba74;
}

.ec-popular {
    position: absolute;
    top: -9px;
    left: 13px;
    padding: 4px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #b90000, #f97316);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .25px;
    box-shadow: 0 8px 18px rgba(185,0,0,.18);
}

.ec-check {
    position: absolute;
    top: 11px;
    right: 11px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 900;
    transition: all .18s ease;
}

.elden-card.active .ec-check {
    background: #f97316;
    color: #fff;
}

.ec-month-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 900;
}

.elden-card.active .ec-month-badge {
    background: #ffedd5;
    color: #c2410c;
    border-color: #fed7aa;
}

.ec-monthly {
    color: #64748b;
    font-weight: 700;
    line-height: 1.2;
}

.ec-monthly strong {
    display: block;
    font-size: 22px;
    letter-spacing: -.25px;
    color: #0f172a;
}

.ec-monthly span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #64748b;
}

.elden-card.active .ec-monthly strong {
    color: #b90000;
}

.ec-total {
    width: 100%;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
    font-size: 13px;
    font-weight: 800;
    color: #64748b;
}

.elden-card.active .ec-total {
    color: #0f172a;
}

@media (max-width: 768px) {
    .elden-wrapper { padding: 15px; border-radius: 16px; }
    .elden-top-methods { grid-template-columns: 1fr; }
    .elden-contract-headline { flex-direction: column; align-items: flex-start; }
    .elden-delivery-badge { white-space: normal; }
    .elden-options { grid-template-columns: 1fr; }
    .elden-contract-headline h3 { font-size: 17px; }
}

/* ================= CART PAGE SHORTCODE ================= */
.elden-cart-wrap { margin: 30px 0; padding: 25px; background: #ffffff; border-radius: 16px; border: 1px solid #eee; border-left: 5px solid #f97316; }
.elden-cart-item-plan { margin-bottom: 25px; }
.elden-cart-item-plan:last-child { margin-bottom: 0; }
.elden-cart-item-plan h4 { font-size: 15px; font-weight: 700; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.elden-cart-item-plan .dot { width: 8px; height: 8px; background: #f97316; border-radius: 50%; }
.elden-plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.plan-row { background: #f9fafb; padding: 12px 14px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; border: 1px solid #f0f0f0; font-size: 13px; }
.plan-row span { color: #666; }
.plan-row strong { color: #f97316; font-weight: 700; }
