/* ============ EUPETSPA Güvenli Ödeme ============ */
.odeme-body {
    background: #F8F7F4;
    color: #1B1B1B;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    line-height: 1.5;
}

.odeme-body a { color: inherit; }

/* ---------- Header ---------- */
.odeme-header {
    max-width: 1160px;
    margin: 0 auto;
    padding: 18px 20px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.odeme-header__logotext {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #1B1B1B;
    text-decoration: none;
}
.odeme-header__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #6F6F6F;
    letter-spacing: 0.02em;
}
.odeme-header__back {
    font-size: 13px;
    font-weight: 600;
    color: #6F6F6F;
    text-decoration: none;
}
.odeme-header__back:hover { color: #8A2F2F; }

/* ---------- Steps ---------- */
.odeme-steps {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: #9a968d;
}
.odeme-steps__sep { flex: 1; height: 1px; background: #E4E1DA; }
.odeme-steps__item { white-space: nowrap; }
.odeme-steps__item--active { color: #8A2F2F; font-weight: 700; }

/* ---------- Ana grid ---------- */
.odeme {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px 60px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    gap: 26px;
    align-items: start;
}
.odeme__form  { grid-column: 1; grid-row: 1; }
.odeme-summary { grid-column: 2; grid-row: 1; }

/* ---------- Bölümler ---------- */
.odeme-section {
    background: #FFFFFF;
    border: 1px solid #E4E1DA;
    border-radius: 8px;
    padding: 24px 26px;
    margin-bottom: 18px;
}
.odeme-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
}
.odeme-section__num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1B1B1B;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

/* ---------- Form ---------- */
.odeme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.odeme-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.odeme-field { margin-bottom: 14px; min-width: 0; }
.odeme-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #1B1B1B;
    margin-bottom: 6px;
}
.odeme-sub { color: #9a968d; font-weight: 400; }
.odeme-required { color: #B3362D; }
.odeme-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    font-size: 14px;
    font-family: inherit;
    color: #1B1B1B;
    background: #fff;
    border: 1px solid #D8D4CC;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.odeme-input:focus {
    border-color: #8A2F2F;
    box-shadow: 0 0 0 3px rgba(138, 47, 47, 0.10);
}
.odeme-input--area { resize: vertical; min-height: 76px; }
select.odeme-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6F6F6F 50%), linear-gradient(135deg, #6F6F6F 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.odeme-field__error {
    display: none;
    font-size: 12px;
    color: #B3362D;
    margin: 5px 0 0;
}
.odeme-field__error.has-error { display: block; }
.odeme-input.has-error { border-color: #B3362D; }

.odeme-phone { position: relative; }
.odeme-phone__prefix {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #6F6F6F;
    border-right: 1px solid #D8D4CC;
    padding-right: 9px;
}
.odeme-input--phone { padding-left: 58px; }

/* ---------- Checkbox ---------- */
.odeme-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    margin: 4px 0;
}
.odeme-check input { position: absolute; opacity: 0; pointer-events: none; }
.odeme-check__box {
    width: 17px;
    height: 17px;
    border: 1.5px solid #C9C4BA;
    border-radius: 4px;
    background: #fff;
    flex: 0 0 auto;
    margin-top: 1px;
    position: relative;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.odeme-check input:checked + .odeme-check__box {
    background: #8A2F2F;
    border-color: #8A2F2F;
}
.odeme-check input:checked + .odeme-check__box::after {
    content: "";
    position: absolute;
    left: 4.5px;
    top: 1px;
    width: 4.5px;
    height: 8.5px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.odeme-check__text { font-size: 12.5px; color: #4a4a4a; }
.odeme-check--confirm .odeme-check__text { font-size: 13px; color: #1B1B1B; }

/* ---------- Fatura bloğu ---------- */
.odeme-invoice {
    margin: 12px 0 4px;
    padding: 0 16px;
    background: #FAF7F2;
    border-left: 3px solid #8A2F2F;
    border-radius: 0 6px 6px 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease, margin 0.35s ease;
}
.odeme-invoice--open { max-height: 520px; opacity: 1; padding: 16px; }
.odeme-invoice__head { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.odeme-invoice .odeme-field { margin-bottom: 10px; }

/* ---------- Ödeme kartları ---------- */
.odeme-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1.5px solid #D8D4CC;
    border-radius: 8px;
    padding: 15px 16px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.odeme-card:hover { border-color: #b5b0a4; }
.odeme-card input { position: absolute; opacity: 0; pointer-events: none; }
.odeme-card input:checked + .odeme-card__body + .odeme-card__radio,
.odeme-card input:checked + .odeme-card__body ~ .odeme-card__radio,
.odeme-card input:checked + .odeme-card__body { border-color: #8A2F2F; }
.odeme-card--pay:has(input:checked) {
    border-color: #8A2F2F;
    background: #FBF6F3;
}
.odeme-card__body { min-width: 0; }
.odeme-card__title {
    display: flex;
    flex-direction: column;
    font-size: 13.5px;
    font-weight: 700;
    gap: 2px;
}
.odeme-card__title small { font-size: 12px; font-weight: 400; color: #6F6F6F; }
.odeme-card__desc { display: block; font-size: 12px; color: #6F6F6F; margin-top: 3px; }
.odeme-card__price { font-size: 13px; font-weight: 700; white-space: nowrap; }
.odeme-card__brands { display: flex; gap: 6px; margin-top: 8px; }
.odeme-brand {
    width: 40px;
    height: 26px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #E4E1DA;
    border-radius: 4px;
    padding: 2px;
    opacity: 0.45;
    filter: grayscale(1);
    transition: opacity 0.15s ease, filter 0.15s ease;
}
.odeme-brand.is-active { opacity: 1; filter: none; }
.odeme-card__radio {
    width: 16px;
    height: 16px;
    border: 1.5px solid #C9C4BA;
    border-radius: 50%;
    flex: 0 0 auto;
    position: relative;
}
.odeme-card__radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #8A2F2F;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.odeme-card input:checked ~ .odeme-card__radio::after { opacity: 1; }

/* ---------- Kart alanları ---------- */
.odeme-paybox { margin: 14px 0 4px; }
.odeme-paybox[hidden] { display: none; }
.odeme-paybox__note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6F6F6F;
    margin: 8px 0 0;
}

/* ---------- Onay ---------- */
.odeme-section--confirm { padding-bottom: 20px; }
.odeme-form__status {
    font-size: 13px;
    border-radius: 6px;
    padding: 11px 13px;
    margin: 12px 0 0;
    display: none;
}
.odeme-form__status.is-error { display: block; background: #FBECEB; color: #B3362D; }
.odeme-form__status.is-ok { display: block; background: #EAF6EE; color: #1E7B3F; }

/* ---------- Butonlar ---------- */
.odeme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: #8A2F2F;
    border: 1px solid #8A2F2F;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.odeme-btn:hover { background: #6F2323; border-color: #6F2323; }
.odeme-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.odeme-btn--ghost { background: #fff; color: #8A2F2F; border-color: #C9C4BA; }
.odeme-btn--ghost:hover { background: #FBF6F3; border-color: #8A2F2F; }
.odeme-btn--small { padding: 9px 14px; font-size: 12.5px; white-space: nowrap; }
.odeme-btn--block { width: 100%; }
.odeme-btn--lg { padding: 15px 22px; font-size: 15px; margin-top: 14px; }

/* ---------- Özet ---------- */
.odeme-summary {
    background: #FFFFFF;
    border: 1px solid #E4E1DA;
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 18px;
}
.odeme-summary__toggle {
    display: none;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #1B1B1B;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
}
.odeme-summary__items { list-style: none; margin: 0; padding: 0; }
.odeme-summary__item {
    display: flex;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #F0EDE6;
}
.odeme-summary__item:last-child { border-bottom: 0; }
.odeme-summary__thumb { position: relative; flex: 0 0 auto; }
.odeme-summary__thumb img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #F0EDE6;
    display: block;
}
.odeme-summary__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: #1B1B1B;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}
.odeme-summary__meta { min-width: 0; display: flex; flex-direction: column; }
.odeme-summary__name { font-size: 13px; font-weight: 600; line-height: 1.35; }
.odeme-summary__variant { font-size: 11.5px; color: #9a968d; margin-top: 2px; }
.odeme-summary__price { font-size: 13px; font-weight: 700; margin-top: auto; padding-top: 4px; }

.odeme-summary__coupon { margin-top: 16px; padding-top: 14px; border-top: 1px solid #F0EDE6; }
.odeme-summary__label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.odeme-summary__couponrow { display: flex; gap: 8px; }
.odeme-summary__couponrow .odeme-input { flex: 1; min-width: 0; }
.odeme-summary__couponmsg { font-size: 12px; margin: 7px 0 0; }
.odeme-summary__couponmsg.is-ok { color: #1E7B3F; }
.odeme-summary__couponmsg.is-error { color: #B3362D; }

.odeme-summary__totals { margin: 16px 0 0; }
.odeme-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 5px 0;
    font-size: 13px;
    color: #6F6F6F;
}
.odeme-summary__row dd { margin: 0; font-weight: 600; color: #1B1B1B; }
.odeme-summary__row--discount dd { color: #1E7B3F; }
.odeme-summary__row--discount dt span {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    color: #1E7B3F;
    background: #EAF6EE;
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: 6px;
    vertical-align: middle;
}
.odeme-summary__row--total {
    border-top: 1px solid #E4E1DA;
    margin-top: 6px;
    padding-top: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #1B1B1B;
}
.odeme-summary__row--total dd { color: #8A2F2F; font-size: 17px; }
.odeme-summary__secure {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #9a968d;
    margin: 14px 0 0;
}

/* ---------- Başarı ---------- */
.odeme-success {
    max-width: 560px;
    margin: 40px auto 80px;
    padding: 0 20px;
}
.odeme-success__card {
    background: #fff;
    border: 1px solid #E4E1DA;
    border-radius: 10px;
    padding: 44px 36px;
    text-align: center;
}
.odeme-success__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #EAF6EE;
    color: #1E7B3F;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.odeme-success__title { font-size: 22px; margin: 0 0 8px; }
.odeme-success__sub { font-size: 14px; color: #6F6F6F; margin: 0 0 12px; }
.odeme-success__note { font-size: 13px; color: #6F6F6F; margin: 0 0 8px; }
.odeme-success__total { font-size: 15px; margin: 12px 0 20px; }
.odeme-success__total strong { color: #8A2F2F; }
.odeme-success__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sözleşmeler ---------- */
.odeme-agreements {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #E4E1DA;
    font-size: 12px;
    color: #6F6F6F;
}
.odeme-agreements__label { display: block; margin-bottom: 6px; }
.odeme-agreements__list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.odeme-agreements__list a { color: #8A2F2F; text-decoration: none; }
.odeme-agreements__list a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.odeme-footer {
    border-top: 1px solid #E4E1DA;
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: #9a968d;
}
.odeme-footer a { text-decoration: none; color: #6F6F6F; }
.odeme-footer a:hover { color: #8A2F2F; }
.odeme-footer__pay {
    margin-top: 12px;
    max-width: 160px;
    vertical-align: middle;
}

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
    .odeme { display: block; padding-bottom: 40px; }
    .odeme-summary { margin-bottom: 18px; position: static; }
    .odeme-summary__toggle { display: flex; }
    .odeme-summary.is-collapsed .odeme-summary__body { display: none; }
    .odeme-summary__chevron { transition: transform 0.2s ease; }
    .odeme-summary.is-collapsed .odeme-summary__chevron { transform: rotate(-90deg); }
    .odeme-grid--3 { grid-template-columns: 1fr 1fr; }
    .odeme-header__title { display: none; }
    .odeme-steps { justify-content: center; }
}
@media (max-width: 560px) {
    .odeme-grid, .odeme-grid--3 { grid-template-columns: 1fr; }
    .odeme-section { padding: 18px; }
}
