/*
Author : SiberMimar "Guray Avci" | Website: www.sibermimar.com.tr

SPR-220
Siber Purchase Popup - UI Shell (skeleton)
*/

.siber-purchasePopup {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
}

.siber-purchasePopup.is-open {
    display: block;
}

body.siber-purchase-open {
    overflow: hidden;
}

.siber-purchasePopup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.siber-purchasePopup__panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 24px);
    max-width: 1120px;
    max-height: calc(100% - 24px);
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.siber-purchasePopup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.siber-purchasePopup__title {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
}

.siber-purchasePopup__close {
    appearance: none;
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    padding: 0 10px;
    cursor: pointer;
    color: #2d2d2d;
}

.siber-purchasePopup__body {
    display: flex;
    gap: 0;
    height: calc(100% - 54px);
    max-height: calc(100vh - 78px);
}

.siber-purchasePopup__main {
    flex: 1;
    padding: 18px 18px;
    overflow: auto;
}

.siber-purchasePopup__aside {
    width: 340px;
    border-left: 1px solid rgba(0, 0, 0, 0.07);
    background: #fafafa;
    padding: 18px 18px;
    overflow: auto;
}

/* Step box */
.siber-purchaseStep {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 16px 16px;
}

.siber-purchaseStep__title {
    font-size: 18px;
    margin: 0 0 10px;
    font-weight: 800;
}

.siber-purchaseStep__desc {
    margin: 0 0 12px;
    color: rgba(0,0,0,0.78);
}

.siber-purchaseStep__hint {
    font-size: 12px;
    color: rgba(0,0,0,0.58);
    border-top: 1px dashed rgba(0,0,0,0.18);
    padding-top: 10px;
}

.siber-purchaseStep__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.siber-purchaseStep__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

/* Aside */
.siber-purchaseChat {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 14px 14px;
}

/* Step info (SPR-224) */
.siber-purchaseInfo {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 14px 14px;
    margin-bottom: 12px;
}

.siber-purchaseInfo__title {
    font-weight: 900;
    font-size: 14px;
    margin-bottom: 8px;
}

.siber-purchaseInfo__desc {
    font-size: 13px;
    color: rgba(0,0,0,0.75);
    margin-bottom: 10px;
}

.siber-purchaseInfo__meta {
    font-size: 12px;
    color: rgba(0,0,0,0.55);
    border-top: 1px dashed rgba(0,0,0,0.16);
    padding-top: 10px;
}

/* Live chat slot (embed) */
.siber-purchaseChatSlot {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
    min-height: 420px;
}

.siber-purchaseChatPlaceholder {
    padding: 14px;
    font-size: 13px;
    color: rgba(0,0,0,0.68);
}

/* SiberLiveChat embed overrides (SPR-224)
   - widget normalde fixed pozisyonlu; popup içinde statik olarak sağ sütunu doldurmalı.
*/
.siber-purchaseChatSlot .sblc-widget.sblc-embedded {
    position: static !important;
    z-index: auto !important;
    pointer-events: auto;
    width: 100%;
}

.siber-purchaseChatSlot .sblc-widget.sblc-embedded .sblc-fab {
    display: none !important;
}

.siber-purchaseChatSlot .sblc-widget.sblc-embedded .sblc-panel {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: none !important;
    height: 420px !important;
    max-height: none !important;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
}

.siber-purchaseChatSlot .sblc-widget.sblc-embedded .sblc-panel__close {
    display: none !important;
}

/* Auth step (SPR-224) */
.siber-authStep {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 16px 16px;
}

.siber-authStep__title {
    font-size: 18px;
    margin: 0 0 8px;
    font-weight: 900;
}

.siber-authStep__desc {
    margin: 0 0 12px;
    color: rgba(0,0,0,0.78);
}

.siber-authStep__tabs {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 12px;
}

.siber-authStep__error,
.siber-authStep__info {
    display: none;
    padding: 10px 10px;
    border-radius: 12px;
    margin: 0 0 12px;
    font-size: 13px;
    color: rgba(0,0,0,0.80);
}

.siber-authStep__error.is-show {
    display: block;
    border: 1px solid rgba(244, 67, 54, 0.22);
    background: rgba(244, 67, 54, 0.06);
}

.siber-authStep__info.is-show {
    display: block;
    border: 1px solid rgba(2, 136, 209, 0.20);
    background: rgba(2, 136, 209, 0.06);
}

.siber-authStep__social {
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 12px;
    padding: 12px;
    margin: 0 0 12px;
    background: #fff;
}

.siber-authStep__socialTitle {
    font-weight: 900;
    font-size: 13px;
    margin: 0 0 8px;
    color: rgba(0,0,0,0.78);
}

.siber-authStep__socialBtns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.siber-authStep__socialBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}

.siber-authStep__panel {
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 12px;
    padding: 14px;
    background: #fff;
}

.siber-authForm__row {
    margin-bottom: 10px;
}

.siber-authForm__passWrap {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.siber-authForm__passWrap .form-control {
    flex: 1;
}

.siber-authForm__passToggle {
    min-width: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.siber-authForm__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0 12px;
    font-size: 12px;
    color: rgba(0,0,0,0.65);
}

.siber-authForm__remember {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 800;
}

.siber-authForm__link {
    text-decoration: underline;
}

.siber-authForm__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.siber-authForm__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 640px) {
    .siber-authForm__grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------
   SPR-233: Register custom fields UI helpers
   - customfield tickbox/radio/help metinleri grid içinde düzgün görünmeli
------------------------------------------------------------- */

.siber-authForm__help {
    grid-column: 1 / -1;
    margin-top: -6px;
    font-size: 12px;
    color: rgba(0,0,0,0.62);
}

.siber-authForm__tick {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.siber-authForm__tick input {
    margin: 0;
}

.siber-authForm__radio {
    grid-column: 1 / -1;
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 12px;
    background: rgba(255,255,255,0.9);
    padding: 10px 12px;
}

.siber-authForm__radioTitle {
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 6px;
}

.siber-authForm__radioItem {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin: 6px 0;
    cursor: pointer;
}

.siber-authForm__radioItem input {
    margin: 0;
}

.siber-authStep__tab {
    appearance: none;
    border: 1px solid rgba(0,0,0,0.14);
    background: #fff;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
}

.siber-authStep__tab.is-active {
    border-color: rgba(27, 94, 32, 0.35);
    background: rgba(27, 94, 32, 0.06);
}

.siber-authStep__frameWrap {
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.siber-authStep__frame {
    width: 100%;
    height: 560px;
    border: 0;
    display: block;
}


.siber-authStep__helper {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(0,0,0,0.58);
}

.siber-authStep__link {
    text-decoration: underline;
}

.siber-authStep__ok {
    padding: 12px 12px;
    border: 1px solid rgba(27, 94, 32, 0.22);
    border-radius: 12px;
    background: rgba(27, 94, 32, 0.06);
    color: rgba(0,0,0,0.78);
    margin-top: 8px;
}

.siber-authStep__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.siber-purchaseChat__title {
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 8px;
}

.siber-purchaseChat__desc {
    font-size: 13px;
    color: rgba(0,0,0,0.75);
    margin-bottom: 10px;
}

.siber-purchaseChat__meta {
    font-size: 12px;
    color: rgba(0,0,0,0.55);
    margin-bottom: 12px;
}

.siber-purchaseChat__actions {
    display: flex;
    justify-content: flex-end;
}


/* Domain step (SPR-225) */
.siber-domainStep{background:#fff;border:1px solid rgba(0,0,0,0.08);border-radius:12px;padding:16px;}
.siber-domainStep__title{font-size:18px;margin:0 0 8px;font-weight:900;}
.siber-domainStep__desc{margin:0 0 12px;color:rgba(0,0,0,0.78);}
.siber-domainStep__modes{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px;}
.siber-domainStep__mode{appearance:none;border:1px solid rgba(0,0,0,0.14);background:#fff;padding:8px 10px;border-radius:10px;cursor:pointer;font-weight:800;font-size:13px;}
.siber-domainStep__mode.is-active{border-color:rgba(27,94,32,0.35);background:rgba(27,94,32,0.06);}
.siber-domainStep__panel{background:#fff;border:1px solid rgba(0,0,0,0.10);border-radius:12px;padding:14px 14px;}
.siber-domainStep__row{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;}
.siber-domainStep__label{display:block;font-weight:800;font-size:13px;margin:0 0 6px;color:rgba(0,0,0,0.80);}
.siber-domainStep__input{flex:1;min-width:220px;}
.siber-domainStep__check{white-space:nowrap;}
.siber-domainStep__status{margin-top:10px;padding:10px 10px;border-radius:10px;font-size:13px;color:rgba(0,0,0,0.78);} 
.siber-domainStep__status:empty{display:none;}
.siber-domainStep__status.is-info{background:rgba(2,136,209,0.08);border:1px solid rgba(2,136,209,0.18);} 
.siber-domainStep__status.is-ok{background:rgba(27,94,32,0.06);border:1px solid rgba(27,94,32,0.18);} 
.siber-domainStep__status.is-err{background:rgba(198,40,40,0.06);border:1px solid rgba(198,40,40,0.18);} 
.siber-domainStep__actions{display:flex;justify-content:space-between;gap:10px;margin-top:14px;flex-wrap:wrap;}
.siber-domainStep__hint{margin-top:10px;font-size:12px;color:rgba(0,0,0,0.58);} 

/* Embed step (SPR-225) */
.siber-embedStep{background:#fff;border:1px solid rgba(0,0,0,0.08);border-radius:12px;padding:16px;}
.siber-embedStep__title{font-size:18px;margin:0 0 8px;font-weight:900;}
.siber-embedStep__desc{margin:0 0 12px;color:rgba(0,0,0,0.78);}
.siber-embedStep__frameWrap{border:1px solid rgba(0,0,0,0.10);border-radius:12px;overflow:hidden;background:#fff;}
.siber-embedStep__frame{width:100%;height:680px;border:0;display:block;}
.siber-embedStep__helper{margin-top:10px;font-size:12px;color:rgba(0,0,0,0.58);}
.siber-embedStep__link{text-decoration:underline;}

/* Configure step (SPR-226) */
.siber-configStep{background:#fff;border:1px solid rgba(0,0,0,0.08);border-radius:12px;padding:16px;}
.siber-configStep__title{font-size:18px;margin:0 0 8px;font-weight:900;}
.siber-configStep__desc{margin:0 0 12px;color:rgba(0,0,0,0.78);}
.siber-configStep__loading{padding:12px 12px;border:1px dashed rgba(0,0,0,0.18);border-radius:12px;color:rgba(0,0,0,0.60);font-size:13px;}
.siber-configStep__form{margin-top:12px;}
.siber-configSection{margin-bottom:14px;padding:12px 12px;border:1px solid rgba(0,0,0,0.08);border-radius:12px;background:rgba(0,0,0,0.01);} 
.siber-configSection__title{font-weight:900;font-size:14px;margin-bottom:6px;}
.siber-configSection__hint{font-size:12px;color:rgba(0,0,0,0.58);margin-bottom:10px;}
.siber-configGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.siber-configField{background:#fff;border:1px solid rgba(0,0,0,0.08);border-radius:12px;padding:12px 12px;}
.siber-configField__label{display:block;font-weight:900;font-size:13px;margin:0 0 8px;color:rgba(0,0,0,0.82);} 
.siber-configField__help{margin-top:8px;font-size:12px;color:rgba(0,0,0,0.60);} 
.siber-configRadio{display:flex;flex-direction:column;gap:8px;}
.siber-configRadio__item{display:flex;align-items:flex-start;gap:10px;padding:10px 10px;border:1px solid rgba(0,0,0,0.10);border-radius:12px;cursor:pointer;background:#fff;}
.siber-configRadio__item input{margin-top:3px;}
.siber-configRadio__text{font-size:13px;color:rgba(0,0,0,0.78);} 
.siber-configCheck{display:flex;align-items:flex-start;gap:10px;padding:10px 10px;border:1px solid rgba(0,0,0,0.10);border-radius:12px;cursor:pointer;background:#fff;}
.siber-configCheck input{margin-top:3px;}
.siber-configCheck__text{font-size:13px;color:rgba(0,0,0,0.78);} 
.siber-configStep__status{margin-top:10px;padding:10px 10px;border-radius:10px;font-size:13px;color:rgba(0,0,0,0.78);} 
.siber-configStep__status:empty{display:none;}
.siber-configStep__status.is-info{background:rgba(2,136,209,0.08);border:1px solid rgba(2,136,209,0.18);} 
.siber-configStep__status.is-ok{background:rgba(27,94,32,0.06);border:1px solid rgba(27,94,32,0.18);} 
.siber-configStep__status.is-err{background:rgba(198,40,40,0.06);border:1px solid rgba(198,40,40,0.18);} 
.siber-configStep__actions{display:flex;justify-content:space-between;gap:10px;margin-top:12px;flex-wrap:wrap;}
.siber-configStep__hint{margin-top:10px;font-size:12px;color:rgba(0,0,0,0.58);} 
.siber-configStep__link{text-decoration:underline;}


/* Checkout step (SPR-227) */
.siber-checkoutStep{background:#fff;border:1px solid rgba(0,0,0,0.08);border-radius:12px;padding:16px;}
.siber-checkoutStep__title{font-size:18px;margin:0 0 8px;font-weight:900;}
.siber-checkoutStep__desc{margin:0 0 12px;color:rgba(0,0,0,0.78);}
.siber-checkoutStep__loading{padding:12px 12px;border:1px dashed rgba(0,0,0,0.18);border-radius:12px;color:rgba(0,0,0,0.60);font-size:13px;}
.siber-checkoutGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px;}
.siber-checkoutCard{background:#fff;border:1px solid rgba(0,0,0,0.08);border-radius:12px;padding:12px 12px;}
.siber-checkoutCard__title{font-weight:900;font-size:14px;margin:0 0 10px;}
.siber-checkoutList{display:flex;flex-direction:column;gap:8px;}
.siber-checkoutItem{display:flex;justify-content:space-between;gap:10px;border:1px solid rgba(0,0,0,0.08);border-radius:12px;padding:10px 10px;}
.siber-checkoutItem__name{font-weight:800;font-size:13px;color:rgba(0,0,0,0.82);}
.siber-checkoutItem__price{font-size:13px;color:rgba(0,0,0,0.72);white-space:nowrap;}
.siber-checkoutTotals{margin-top:10px;border-top:1px dashed rgba(0,0,0,0.16);padding-top:10px;display:flex;flex-direction:column;gap:6px;}
.siber-checkoutTotals__row{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:rgba(0,0,0,0.74);}
.siber-checkoutTotals__row--total{font-weight:900;color:rgba(0,0,0,0.88);}
.siber-checkoutTotals__row--discount{color:rgba(198,40,40,0.86);}
.siber-payOptions{display:flex;flex-direction:column;gap:10px;margin-top:10px;}
.siber-payOption{display:flex;align-items:flex-start;gap:10px;border:1px solid rgba(0,0,0,0.10);border-radius:12px;padding:10px 10px;cursor:pointer;background:#fff;}
.siber-payOption input{margin-top:3px;}
.siber-payOption__name{font-weight:900;font-size:13px;color:rgba(0,0,0,0.82);}
.siber-payOption__meta{font-size:12px;color:rgba(0,0,0,0.58);}
/* SPR-236: Bank transfer info box */
.siber-bankInfo{margin-top:10px;padding:10px 10px;border:1px dashed rgba(0,0,0,0.18);border-radius:12px;background:rgba(0,0,0,0.02);font-size:12px;color:rgba(0,0,0,0.78);}
.siber-bankInfo__title{font-weight:900;font-size:13px;margin:0 0 6px;color:rgba(0,0,0,0.86);}
.siber-bankInfo__desc{margin:0 0 8px;color:rgba(0,0,0,0.72);}
.siber-bankInfo__details{margin:0 0 8px;white-space:pre-line;line-height:1.45;color:rgba(0,0,0,0.74);}
.siber-bankInfo__details:empty{display:none;}
.siber-bankInfo__list{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:4px;}
.siber-bankInfo__list li{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:12px;color:rgba(0,0,0,0.80);}

/* Invoice embed içinde bank info container'ı sadece sarmalayıcı olarak kullanılır */
.siber-bankInfo.siber-bankInfo--hero{padding:0;border:0;background:transparent;}

/* =========================================================================
   SPR-276: Havale/EFT "Yeşil" Ödeme Kutusu
   - Ödenecek toplam tutar + banka bilgileri + açıklama (sipariş no)
   - Checkout UI + Invoice embed UI'da aynı component kullanılır
   ========================================================================= */

.siber-checkoutStep__status.siber-payHeroStatus{padding:0;border:0;background:transparent;}

.siber-payHero{
    border-radius:14px;
    padding:14px 14px;
    color:#ffffff;
    text-align:center;
    background:var(--egn-bg-gradient, linear-gradient(150deg,#4e9c22 0%,#5ca51d 18%,#67ab2b 46%,#52a329 100%));
    box-shadow:0 14px 40px rgba(0,0,0,0.22);
}

.siber-payHero__label{font-size:12px;letter-spacing:0.4px;text-transform:uppercase;opacity:0.92;}
.siber-payHero__amount{font-size:26px;font-weight:900;line-height:1.1;margin-top:4px;}

.siber-payHero__bank,.siber-payHero__desc{
    margin-top:12px;
    padding:10px 10px;
    border-radius:12px;
    background:rgba(255,255,255,0.12);
    border:1px solid rgba(255,255,255,0.18);
    text-align:left;
}

.siber-payHero__bankTitle,.siber-payHero__descTitle{font-weight:900;font-size:13px;margin:0 0 6px;}
.siber-payHero__bankLines{font-size:12px;line-height:1.45;}

.siber-payHero__bankRow{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;padding:4px 0;border-top:1px dashed rgba(255,255,255,0.22);} 
.siber-payHero__bankRow:first-child{border-top:0;padding-top:0;}
.siber-payHero__bankLabel{min-width:96px;opacity:0.92;font-weight:700;}
.siber-payHero__bankValue{flex:1;text-align:right;word-break:break-word;}
.siber-payHero__bankValue.is-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;letter-spacing:0.2px;}
.siber-payHero__bankPre{white-space:pre-line;}

.siber-payHero__descText{font-size:12px;opacity:0.92;margin:0 0 6px;}
.siber-payHero__descValue{font-size:13px;font-weight:900;line-height:1.35;}

@media (max-width: 576px){
    .siber-payHero__amount{font-size:22px;}
    .siber-payHero__bankLabel{min-width:88px;}
}
.siber-checkoutTos{margin-top:10px;padding:10px 10px;border:1px dashed rgba(0,0,0,0.16);border-radius:12px;font-size:12px;color:rgba(0,0,0,0.70);display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.siber-checkoutTos a{text-decoration:underline;}
.siber-checkoutStep__status{margin-top:10px;padding:10px 10px;border-radius:10px;font-size:13px;color:rgba(0,0,0,0.78);} 
.siber-checkoutStep__status:empty{display:none;}
.siber-checkoutStep__status.is-info{background:rgba(2,136,209,0.08);border:1px solid rgba(2,136,209,0.18);} 
.siber-checkoutStep__status.is-err{background:rgba(198,40,40,0.06);border:1px solid rgba(198,40,40,0.18);} 
.siber-checkoutStep__status.is-ok{background:rgba(27,94,32,0.06);border:1px solid rgba(27,94,32,0.18);} 
.siber-checkoutStep__actions{display:flex;justify-content:space-between;gap:10px;margin-top:12px;flex-wrap:wrap;}
.siber-checkoutStep__hint{margin-top:10px;font-size:12px;color:rgba(0,0,0,0.58);} 
.siber-checkoutStep__link{text-decoration:underline;}
.siber-checkoutEmbedNotice{margin:10px 0 12px;padding:10px 10px;border-radius:12px;border:1px solid rgba(0,0,0,0.10);background:rgba(0,0,0,0.02);font-size:13px;color:rgba(0,0,0,0.75);}
.siber-checkoutEmbedNotice.is-info{background:rgba(3,169,244,0.08);border-color:rgba(3,169,244,0.18);}
.siber-checkoutEmbedNotice.is-warn{background:rgba(255,152,0,0.08);border-color:rgba(255,152,0,0.18);}
.siber-checkoutEmbedNotice.is-ok{background:rgba(27,94,32,0.06);border-color:rgba(27,94,32,0.18);}
.siber-checkoutEmbedNotice.is-err{background:rgba(198,40,40,0.06);border-color:rgba(198,40,40,0.18);}

/* Embed invoice actions (SPR-265) */
.siber-invoiceActions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin:0 0 12px;}

/* Payment notice step (SPR-265) */
.siber-payNotice__meta{margin:6px 0 10px;font-size:12px;color:rgba(0,0,0,0.62);}
.siber-payNotice__text{width:100%;min-height:220px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:13px;line-height:1.45;}
.siber-payNotice__status{margin-top:10px;padding:10px 10px;border-radius:10px;font-size:13px;color:rgba(0,0,0,0.78);} 
.siber-payNotice__status:empty{display:none;}
.siber-payNotice__status.is-info{background:rgba(2,136,209,0.08);border:1px solid rgba(2,136,209,0.18);}
.siber-payNotice__status.is-ok{background:rgba(27,94,32,0.06);border:1px solid rgba(27,94,32,0.18);}
.siber-payNotice__status.is-err{background:rgba(198,40,40,0.06);border:1px solid rgba(198,40,40,0.18);}


/* Mobile */
@media (max-width: 991.98px) {
    .siber-purchasePopup__panel {
        top: auto;
        left: 12px;
        right: 12px;
        bottom: 12px;
        transform: none;
        width: auto;
        max-width: none;
        max-height: calc(100% - 24px);
    }

    .siber-purchasePopup__body {
        flex-direction: column;
        height: auto;
        max-height: calc(100vh - 110px);
    }

    .siber-purchasePopup__aside {
        width: 100%;
        border-left: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.07);
    }

    .siber-purchaseChatSlot .sblc-widget.sblc-embedded .sblc-panel {
        height: 360px !important;
    }

    .siber-authStep__frame {
        height: 520px;
    }

    .siber-embedStep__frame {
        height: 560px;
    }

    .siber-configGrid {
        grid-template-columns: 1fr;
    }

    .siber-checkoutGrid {
        grid-template-columns: 1fr;
    }
}

/* =======================================================================
   SPR-266: Ödeme kesinleşti (invoice PAID) durumunda popup içinde net final kartı
   - Kredi kartı ödeme akışında "ödeme yapılmadan tamamlandı" algısını engeller.
   ======================================================================= */

.siber-paymentDone{
    margin-top: 12px;
    padding: 14px 14px;
    border-radius: 12px;
    border: 1px solid rgba(46, 125, 50, 0.18);
    background: rgba(46, 125, 50, 0.06);
}

.siber-paymentDone__title{
    font-weight: 700;
    margin: 0 0 6px 0;
}

.siber-paymentDone__desc{
    margin: 0;
    color: rgba(0, 0, 0, 0.72);
}

/* =======================================================================
   SPR-281: Siber Invoice Popup (Sipariş Formu Görüntüleme)
   - Canlı destek kolonundan bağımsız, modern bir üst bar ile viewinvoice gösterir.
   ======================================================================= */

body.siber-invoice-open{
    overflow: hidden;
}

.siber-invoicePopup{
    position: fixed;
    inset: 0;
    z-index: 2147483100;
    display: none;
}

.siber-invoicePopup.is-open{
    display: block;
}

.siber-invoicePopup__backdrop{
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.siber-invoicePopup__panel{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(1240px, calc(100vw - 28px));
    height: min(92vh, 860px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.siber-invoicePopup__header{
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
}

.siber-invoicePopup__status{
    display: none;
    padding: 10px 14px;
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.siber-invoicePopup__status.is-success{
    display: block;
    background: rgba(46, 125, 50, 0.10);
    color: #1b5e20;
}

.siber-invoicePopup__status.is-info{
    display: block;
    background: rgba(2, 136, 209, 0.10);
    color: #01579b;
}

.siber-invoicePopup__status.is-error{
    display: block;
    background: rgba(198, 40, 40, 0.10);
    color: #b71c1c;
}

.siber-invoicePopup__bar{
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
}

.siber-invoicePopup__barLeft{
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.siber-invoicePopup__title{
    font-weight: 800;
    font-size: 16px;
    white-space: nowrap;
}

.siber-invoicePopup__gateway{
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.siber-invoicePopup__gatewayLabel{
    margin: 0;
    font-weight: 700;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.65);
    white-space: nowrap;
}

.siber-invoicePopup__gatewaySelect{
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    padding: 0 10px;
    min-width: 190px;
    max-width: 44vw;
}

/* SPR-290: gateway empty state (static pill + hint) */
.siber-invoicePopup__gatewayStatic{
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    padding: 0 10px;
    min-width: 190px;
    max-width: 44vw;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.02);
    font-weight: 800;
    color: rgba(0, 0, 0, 0.78);
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.siber-invoicePopup__gatewayHint{
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px dashed rgba(0, 0, 0, 0.22);
    font-size: 11px;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.70);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.siber-invoicePopup__actions{
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.siber-invoicePopup__btn{
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: #fff;
    padding: 0 12px;
    font-weight: 700;
    cursor: pointer;
}

/* SPR-290: keyboard focus visibility */
.siber-invoicePopup__btn:focus-visible,
.siber-invoicePopup__btnClose:focus-visible,
.siber-invoicePopup__gatewaySelect:focus-visible,
.siber-invoicePopup__noticeTextarea:focus-visible{
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.28);
}

.siber-invoicePopup__btn[disabled]{
    opacity: 0.55;
    cursor: not-allowed;
}

.siber-invoicePopup__btn--primary{
    border-color: rgba(46, 125, 50, 0.30);
    background: rgba(46, 125, 50, 0.10);
    color: #1b5e20;
}

.siber-invoicePopup__btnClose{
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: #fff;
    font-size: 22px;
    line-height: 26px;
    cursor: pointer;
}

.siber-invoicePopup__bankBox{
    padding: 12px 14px 14px 14px;
    background: rgba(46, 125, 50, 0.08);
    border-top: 1px solid rgba(46, 125, 50, 0.12);
}

.siber-invoicePopup__bankLoading{
    font-weight: 700;
    color: rgba(0, 0, 0, 0.70);
}

.siber-invoicePopup__bankTop{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(46, 125, 50, 0.14);
    border: 1px solid rgba(46, 125, 50, 0.18);
}

.siber-invoicePopup__ibanLabel{
    font-weight: 800;
    color: rgba(0, 0, 0, 0.75);
}

.siber-invoicePopup__ibanVal{
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.siber-invoicePopup__bankDesc{
    margin-top: 10px;
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(46, 125, 50, 0.18);
}

.siber-invoicePopup__bankDescTitle{
    font-weight: 900;
    margin-bottom: 4px;
}

.siber-invoicePopup__bankDescHelp{
    color: rgba(0, 0, 0, 0.70);
    font-weight: 600;
}

.siber-invoicePopup__bankDescVal{
    margin-top: 6px;
}

.siber-invoicePopup__body{
    flex: 1;
    overflow: auto;
    background: #f5f6f7;
}

.siber-invoicePopup__frame{
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #fff;
}


/* SPR-287: iframe'siz invoice render (JSON + TS) */
.siber-invoicePopup__content{
    padding: 14px;
    background: #f5f6f7;
    min-height: 100%;
    box-sizing: border-box;
}

.siber-invoicePopup__loading,
.siber-invoicePopup__error{
    padding: 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-weight: 800;
    color: rgba(0, 0, 0, 0.72);
}

.siber-invoicePopup__error{
    background: rgba(198, 40, 40, 0.06);
    border-color: rgba(198, 40, 40, 0.18);
    color: #b71c1c;
}

.siber-invoicePopup__errorActions{
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.siber-invoicePopup__invHead{
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
}

.siber-invoicePopup__invTitle{
    font-size: 18px;
    font-weight: 900;
}

.siber-invoicePopup__invStatus{
    display: inline-block;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(2, 136, 209, 0.10);
    color: #01579b;
    font-weight: 900;
    font-size: 12px;
}

.siber-invoicePopup__invMeta{
    margin-top: 8px;
    color: rgba(0, 0, 0, 0.65);
    font-weight: 700;
    font-size: 12px;
}

.siber-invoicePopup__grid{
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 12px;
    align-items: start;
}

.siber-invoicePopup__box{
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
}

.siber-invoicePopup__boxTitle{
    font-weight: 900;
    margin-bottom: 8px;
}

.siber-invoicePopup__tableWrap{
    overflow: auto;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.siber-invoicePopup__table{
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.siber-invoicePopup__table th,
.siber-invoicePopup__table td{
    padding: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    vertical-align: top;
}

.siber-invoicePopup__table th{
    background: rgba(0, 0, 0, 0.03);
    font-size: 12px;
    font-weight: 900;
}

.siber-invoicePopup__table td.is-right,
.siber-invoicePopup__table th.is-right{
    text-align: right;
}

.siber-invoicePopup__table tfoot td{
    background: rgba(0, 0, 0, 0.02);
}

.siber-invoicePopup__note{
    margin-top: 8px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.65);
    font-weight: 700;
}

.siber-invoicePopup__info{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.siber-invoicePopup__infoRow{
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.siber-invoicePopup__infoLabel{
    color: rgba(0, 0, 0, 0.65);
    font-weight: 800;
    font-size: 12px;
}

.siber-invoicePopup__infoVal{
    font-weight: 900;
    font-size: 12px;
    text-align: right;
}

.siber-invoicePopup__address{
    white-space: pre-line;
    color: rgba(0, 0, 0, 0.75);
    font-weight: 700;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 992px){
    .siber-invoicePopup__grid{
        grid-template-columns: 1fr;
    }

    .siber-invoicePopup__table{
        min-width: 0;
    }
}


/* Inner payment notice modal */
.siber-invoicePopup__noticeOverlay{
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}


/* =========================================================
   SPR-289 — Online ödeme overlay (iframe)
   - Invoice popup içinde gateway ödeme akışını başlatmak için
     viewinvoice embed sayfasını iframe ile açar.
   - Gateway framing engellerse kullanıcı "Yeni sekmede aç" ile devam edebilir.
   ========================================================= */

.siber-invoicePopup__payOverlay{
    position: absolute;
    inset: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.siber-invoicePopup__payBar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.siber-invoicePopup__payTitle{
    font-weight: 900;
    font-size: 16px;
}

.siber-invoicePopup__payActions{
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.siber-invoicePopup__payInfo{
    padding: 10px 14px;
    background: rgba(2, 136, 209, 0.06);
    color: rgba(0, 0, 0, 0.78);
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    white-space: pre-line;
    line-height: 1.35;
}

.siber-invoicePopup__payInfo.is-error{
    background: rgba(211, 47, 47, 0.08);
    color: rgba(0, 0, 0, 0.82);
}

.siber-invoicePopup__payInfo.is-ok{
    background: rgba(46, 125, 50, 0.10);
    color: rgba(0, 0, 0, 0.84);
}

.siber-invoicePopup__payFrameWrap{
    flex: 1;
    min-height: 0;
    background: #fff;
    position: relative;
}

.siber-invoicePopup__payLoading,
.siber-invoicePopup__payDone{
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 2;
}

.siber-invoicePopup__payFrameWrap.is-loading .siber-invoicePopup__payLoading{
    display: flex;
}

.siber-invoicePopup__payFrameWrap.is-done .siber-invoicePopup__payDone{
    display: flex;
}

.siber-invoicePopup__payFrameWrap.is-loading .siber-invoicePopup__payFrame{
    opacity: 0;
    pointer-events: none;
}

.siber-invoicePopup__payFrameWrap.is-done .siber-invoicePopup__payFrame{
    display: none;
}

.siber-invoicePopup__payLoadingInner{
    width: min(520px, 100%);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    box-shadow: 0 14px 44px rgba(0,0,0,0.10);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.siber-invoicePopup__spinner{
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid rgba(0,0,0,0.12);
    border-top-color: rgba(0,0,0,0.45);
    animation: siberSpin 0.9s linear infinite;
    flex: 0 0 auto;
}

.siber-invoicePopup__payLoadingText{
    font-weight: 800;
    color: rgba(0,0,0,0.76);
}

@keyframes siberSpin{
    from{ transform: rotate(0deg); }
    to{ transform: rotate(360deg); }
}

.siber-invoicePopup__payDone{
    background: linear-gradient(135deg, rgba(46,125,50,0.16), rgba(0,200,160,0.10));
}

.siber-invoicePopup__payDoneCard{
    width: min(560px, 100%);
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 18px;
    padding: 22px 18px;
    box-shadow: 0 18px 58px rgba(0,0,0,0.16);
    text-align: center;
}

.siber-invoicePopup__payDoneIcon{
    width: 54px;
    height: 54px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: rgba(46,125,50,0.14);
    color: rgba(46,125,50,1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 30px;
}

.siber-invoicePopup__payDoneTitle{
    font-weight: 900;
    font-size: 20px;
    margin-bottom: 6px;
    color: rgba(0,0,0,0.82);
}

.siber-invoicePopup__payDoneDesc{
    font-weight: 700;
    color: rgba(0,0,0,0.70);
}

.siber-invoicePopup__payFrame{
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.siber-invoicePopup__noticeModal{
    width: min(720px, 100%);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
    padding: 14px;
}

.siber-invoicePopup__noticeTitle{
    font-weight: 900;
    font-size: 16px;
    margin-bottom: 6px;
}

.siber-invoicePopup__noticeInfo{
    color: rgba(0, 0, 0, 0.72);
    margin-bottom: 10px;
}

.siber-invoicePopup__noticeTextarea{
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    padding: 10px;
    resize: vertical;
    min-height: 180px;
}

.siber-invoicePopup__noticeActions{
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

@media (max-width: 768px){
    .siber-invoicePopup__panel{
        width: calc(100vw - 16px);
        height: 92vh;
    }

    .siber-invoicePopup__bar{
        flex-direction: column;
        align-items: stretch;
    }

    .siber-invoicePopup__actions{
        justify-content: flex-start;
    }

    .siber-invoicePopup__gatewaySelect{
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    .siber-invoicePopup__gatewayStatic{
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
}
