/* Basket page — scoped under .ui-page-basket */

.ui-page-basket .basket-table-card {
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(25, 35, 126, 0.08);
    overflow: hidden;
}

.ui-page-basket .sepet-tablo {
    gap: 0;
    margin-bottom: 0 !important;
}

.ui-page-basket .sepet-tablo-card {
    background: #fff;
    border-radius: 0;
    color: #111;
    gap: 12px;
    padding: 16px 20px;
}

.ui-page-basket .sepet-tablo-card:not(.sepet-tablo-card-header):not(.basket-summary-bar) {
    border-bottom: 1px solid #eef1f6;
}

.ui-page-basket .sepet-tablo-card:not(.sepet-tablo-card-header):not(.basket-summary-bar):last-of-type {
    border-bottom: none;
}

.ui-page-basket .sepet-tablo-card.sepet-tablo-card-header {
    background: var(--heading-color, #19237e);
    border-radius: 0;
    color: #fff;
    font-family: var(--heading-font, Arial, Helvetica, sans-serif);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    padding: 14px 20px !important;
    text-transform: uppercase;
}

@media (min-width: 1200px) {
    .ui-page-basket .sepet-tablo-card {
        align-items: center;
        grid-template-columns: 40px 100px 3fr 1.4fr 1fr 52px;
    }

    .ui-page-basket .sepet-tablo-card.sepet-tablo-card-header {
        display: grid;
    }
}

.ui-page-basket .index-cell {
    align-items: center;
    display: flex;
    justify-content: center;
}

.ui-page-basket .basket-row-index {
    align-items: center;
    background: linear-gradient(135deg, #f97316, #fb923c);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 800;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.ui-page-basket .basket-title-index {
    display: none;
}

.ui-page-basket .gorsel-cell {
    display: block;
}

.ui-page-basket .basket-img {
    border-radius: 10px;
    height: 64px;
    object-fit: cover;
    width: 100px;
}

.ui-page-basket .sepet-tablo-card .hizmet-title {
    color: #111;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.ui-page-basket .hizmet-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.ui-page-basket .hizmet-item {
    align-items: center;
    display: inline-flex;
    gap: 6px;
}

.ui-page-basket .hizmet-count {
    font-weight: 800;
}

.ui-page-basket .basket-meta-row {
    display: contents;
}

.ui-page-basket .basket-date-time {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ui-page-basket .basket-date-time__row {
    align-items: center;
    color: #374151;
    display: flex;
    font-size: 0.88rem;
    gap: 8px;
}

.ui-page-basket .basket-date-time__row i {
    color: #9ca3af;
    font-size: 0.95rem;
}

.ui-page-basket .sepet-tablo-card:not(.sepet-tablo-card-header) .tutar-cell {
    color: #111;
    font-size: 1.05rem;
    font-weight: 800;
}

.ui-page-basket .sepet-tablo-card .basket-delete-btn {
    align-items: center;
    background: #fff;
    border: 1.5px solid #ef4444;
    border-radius: 10px;
    color: #ef4444;
    display: inline-flex;
    font-size: 1.1rem;
    height: 42px;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
    width: 42px;
}

.ui-page-basket .sepet-tablo-card .basket-delete-btn:hover {
    background: #ef4444;
    color: #fff;
}

.ui-page-basket .basket-summary-bar {
    align-items: center;
    background: #f0f4fa;
    border-bottom: none !important;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    padding: 20px 24px !important;
}

.ui-page-basket .basket-summary-bar__left {
    align-items: center;
    display: flex;
    gap: 14px;
}

.ui-page-basket .basket-summary-bar__icon {
    align-items: center;
    background: linear-gradient(135deg, #f97316, #f5c800);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 1.15rem;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.ui-page-basket .basket-summary-bar__count {
    color: #111;
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 2px;
}

.ui-page-basket .basket-summary-bar__sub {
    color: #6b7280;
    font-size: 0.82rem;
    margin: 0;
}

.ui-page-basket .basket-summary-bar__right {
    text-align: right;
}

.ui-page-basket .basket-summary-bar__label {
    color: var(--heading-color, #19237e);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.ui-page-basket .basket-summary-bar__total {
    color: #111;
    display: inline-block;
    font-family: var(--heading-font, Arial, Helvetica, sans-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
    position: relative;
}

.ui-page-basket .basket-summary-bar__total::after {
    background: linear-gradient(90deg, #f97316, #f5c800);
    border-radius: 2px;
    bottom: -4px;
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
}

/* Payment method buttons */
.ui-page-basket .sepet-butonlar {
    gap: 16px;
    margin-top: 24px;
}

@media (min-width: 992px) {
    .ui-page-basket .sepet-butonlar {
        flex-direction: row;
    }

    .ui-page-basket .sepet-butonlar .basket-pay-btn {
        flex: 1 1 0;
        max-width: none;
        width: auto;
    }
}

.ui-page-basket .sepet-butonlar .basket-pay-btn {
    align-items: center;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    font-family: var(--heading-font, Arial, Helvetica, sans-serif);
    font-size: 0.82rem;
    font-weight: 800;
    gap: 10px;
    justify-content: center;
    letter-spacing: 1px;
    min-height: 56px;
    padding: 16px 24px;
    text-transform: uppercase;
    transition: opacity 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    width: 100%;
}

.ui-page-basket .sepet-butonlar .basket-pay-btn i {
    font-size: 1.2rem;
}

.ui-page-basket .sepet-butonlar .basket-pay-btn--card {
    background: linear-gradient(135deg, #f97316, #f5c800);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
    color: #fff;
}

.ui-page-basket .sepet-butonlar .basket-pay-btn--card.is-active {
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
    outline: 3px solid rgba(249, 115, 22, 0.25);
}

.ui-page-basket .sepet-butonlar .basket-pay-btn--hotel {
    background: var(--heading-color, #19237e);
    box-shadow: 0 4px 16px rgba(25, 35, 126, 0.25);
    color: #fff;
}

.ui-page-basket .sepet-butonlar .basket-pay-btn:hover {
    opacity: 0.94;
}

.ui-page-basket .sepet-butonlar .basket-pay-btn:active {
    transform: scale(0.99);
}

/* Trust badges */
.ui-page-basket .basket-trust-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
    margin-top: 70px;
}

@media (min-width: 576px) {
    .ui-page-basket .basket-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .ui-page-basket .basket-trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ui-page-basket .basket-trust-item {
    align-items: flex-start;
    display: flex;
    gap: 14px;
}

.ui-page-basket .basket-trust-item__icon {
    align-items: center;
    border: 2px solid rgba(25, 35, 126, 0.15);
    border-radius: 12px;
    color: var(--heading-color, #19237e);
    display: inline-flex;
    flex-shrink: 0;
    font-size: 1.25rem;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.ui-page-basket .basket-trust-item__title {
    color: #111;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 4px;
}

.ui-page-basket .basket-trust-item__text {
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.45;
    margin: 0;
}

/* Payment panel */
.ui-page-basket .payment-panel-wrapper {
    margin-top: 28px;
}

.ui-page-basket .payment-panel-wrapper > hr {
    display: none;
}

.ui-page-basket .payment-layout {
    align-items: stretch;
    gap: 20px;
}

.ui-page-basket .payment-summary-block,
.ui-page-basket .payment-form-block {
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(25, 35, 126, 0.06);
    overflow: hidden;
}

.ui-page-basket .payment-panel-title {
    align-items: center;
    color: var(--heading-color, #19237e);
    display: flex;
    font-size: 1rem;
    font-weight: 800;
    gap: 10px;
    letter-spacing: 0.5px;
    padding: 20px 24px 12px;
    text-transform: uppercase;
}

.ui-page-basket .payment-panel-title i {
    font-size: 1.2rem;
}

.ui-page-basket .payment-summary {
    padding: 0 24px 16px;
}

.ui-page-basket .payment-summary-row {
    border-bottom: 1px solid #eef1f6;
    padding: 12px 0;
}

.ui-page-basket .payment-summary-row-highlight .payment-summary-val {
    font-size: 1.15rem;
    position: relative;
}

.ui-page-basket .payment-summary-row-highlight:last-of-type .payment-summary-val,
.ui-page-basket #payableAmount {
    display: inline-block;
}

.ui-page-basket #payableAmount::after {
    background: linear-gradient(90deg, #f97316, #f5c800);
    border-radius: 2px;
    bottom: -3px;
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
}

.ui-page-basket .basket-ssl-badges {
    border-top: 1px solid #eef1f6;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    padding: 16px 24px 20px;
}

.ui-page-basket .basket-ssl-badge {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e8ecf2;
    border-radius: 8px;
    color: #6b7280;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 700;
    gap: 6px;
    padding: 8px 12px;
}

.ui-page-basket .basket-ssl-badge i {
    color: var(--heading-color, #19237e);
    font-size: 0.9rem;
}

.ui-page-basket .payment-form-block .payment-card-visual {
    margin: 20px 24px 0;
}

.ui-page-basket .payment-card-section {
    padding: 18px 24px 0;
}

.ui-page-basket .payment-field label {
    color: var(--heading-color, #19237e);
    font-size: 0.82rem;
    font-weight: 700;
}

.ui-page-basket .payment-input,
.ui-page-basket .payment-select {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    min-height: 46px;
}

.ui-page-basket .payment-input:focus,
.ui-page-basket .payment-select:focus {
    border-color: #1196dd;
    box-shadow: 0 0 0 3px rgba(17, 150, 221, 0.12);
}

.ui-page-basket .payment-agreement {
    margin: 16px 24px 0;
}

.ui-page-basket .payment-pay-wrap {
    padding: 16px 24px 24px;
}

.ui-page-basket .payment-pay-btn {
    background: linear-gradient(135deg, #f97316, #f5c800);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    gap: 10px;
    letter-spacing: 1px;
    min-height: 54px;
}

.ui-page-basket .payment-pay-btn:hover {
    opacity: 0.94;
}

.ui-page-basket .payment-pay-btn:disabled {
    opacity: 0.55;
}

.ui-page-basket .payment-confirm-note {
    align-items: center;
    color: #6b7280;
    display: flex;
    font-size: 0.78rem;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
    text-align: center;
}

.ui-page-basket .payment-confirm-note i {
    color: #22c55e;
    flex-shrink: 0;
}

/* Mobile */
@media (max-width: 1199px) {
    .ui-page-basket .sepet-tablo-card.sepet-tablo-card-header,
    .ui-page-basket .sepet-tablo .sepet-tablo-card-header {
        display: none !important;
    }

    .ui-page-basket .sepet-tablo-card:not(.basket-summary-bar) {
        border: 1px solid #e8ecf2;
        border-radius: 14px;
        display: flex;
        flex-direction: column;
        margin-bottom: 12px;
        padding: 16px;
        position: relative;
    }

    .ui-page-basket .basket-table-card {
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .ui-page-basket .index-cell {
        display: none;
    }

    .ui-page-basket .basket-title-index {
        align-items: center;
        background: linear-gradient(135deg, #f97316, #fb923c);
        border-radius: 50%;
        color: #fff;
        display: inline-flex;
        flex-shrink: 0;
        font-size: 0.8rem;
        font-weight: 800;
        height: 24px;
        justify-content: center;
        margin-right: 8px;
        vertical-align: middle;
        width: 24px;
    }

    .ui-page-basket .basket-img {
        margin-top: 8px;
        width: 100%;
        max-width: 280px;
        height: auto;
        aspect-ratio: 16/10;
    }

    .ui-page-basket .hizmet-cell {
        text-align: left;
        width: 100%;
    }

    .ui-page-basket .sil-cell {
        position: absolute;
        right: 0;
        top: 0;
    }

    .ui-page-basket .sepet-tablo-card .basket-delete-btn {
        width: 32px;
        height: 32px;
    }

    .ui-page-basket .basket-meta-row {
        align-items: center;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 12px;
        justify-content: space-between;
        width: 100%;
    }

    .ui-page-basket .basket-date-time {
        flex-direction: row;
        gap: 16px;
        text-align: left;
    }

    .ui-page-basket .sepet-tablo-card:not(.sepet-tablo-card-header) .tutar-cell {
        text-align: right;
        white-space: nowrap;
    }

    .ui-page-basket .basket-summary-bar {
        border-radius: 14px;
        margin-top: 8px;
    }

    .ui-page-basket .basket-summary-bar__right {
        text-align: center;
        width: 100%;
    }
}
