/* NX shop (Shopier payment): reuses the account/register look of the site. */
.nx-shop {
    width: min(920px, calc(100% - 32px));
    margin: 30px auto 0 auto;
    color: #c4b69b;
    text-align: left;
}

.nx-intro,
.nx-note,
.nx-balance,
.nx-empty,
.nx-login {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 20px;
}

.nx-note {
    color: #9e9282;
    font-size: 12px;
}

.nx-balance strong {
    color: #ffd29a;
    font-weight: 500;
}

.nx-login a {
    color: #ffd29a;
}

.nx-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.nx-card {
    padding: 16px;
    background: #292621;
    border: 1px solid #3a352d;
    text-align: center;
}

.nx-card h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
}

.nx-card .nx-amount {
    color: #ffd29a;
    font-size: 22px;
}

.nx-card .nx-price {
    margin: 4px 0 12px;
    color: #c4b69b;
    font-size: 15px;
}

/* GC cards show only the package name and its price, so the price takes the highlighted amount style. */
.gc-panel .nx-card .nx-price {
    color: #ffd29a;
    font-size: 22px;
}

.nx-buy input.nx-phone {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 8px;
    padding: 9px 10px;
    color: #fff;
    background: #1c1a17;
    border: 1px solid #4a443a;
    font-size: 14px;
}

.nx-buy .register-submit {
    width: 100%;
}

.nx-buy .nx-error {
    display: block;
    margin-top: 6px;
    color: #ff8a80;
    font-size: 12px;
}

/* Payment modal: the Shopier screen (IframeRenderer) lives here, so the visitor never leaves the site. */
.nx-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(0, 0, 0, .78);
}

.nx-modal[hidden] {
    display: none;
}

.nx-modal-box {
    display: flex;
    flex-direction: column;
    width: min(760px, 100%);
    max-height: 100%;
    background: #1c1a17;
    border: 1px solid #4a443a;
}

.nx-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    color: #fff;
    background: #292621;
}

.nx-modal-close {
    color: #c4b69b;
    background: none;
    border: 0;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.nx-modal-body {
    height: min(78vh, 760px);
    background: #fff;
}

.nx-modal-body > div {
    height: 100%;
}

.nx-modal-body iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.nx-modal-foot {
    padding: 8px 14px;
    font-size: 12px;
    text-align: center;
}

.nx-modal-foot a {
    color: #ffd29a;
}

body.nx-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .nx-modal {
        padding: 0;
    }

    .nx-modal-box {
        width: 100%;
        height: 100%;
    }

    .nx-modal-body {
        flex: 1 1 auto;
        height: auto;
    }
}

/* Result pages */
.nx-result {
    width: min(520px, calc(100% - 32px));
    margin: 40px auto 0 auto;
    color: #c4b69b;
    text-align: left;
}

.nx-result h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 400;
}

.nx-result.is-ok h3 {
    color: #8fd18f;
}

.nx-result.is-bad h3 {
    color: #ff8a80;
}

.nx-result dl {
    margin: 16px 0;
    padding: 0;
}

.nx-result dt {
    float: left;
    clear: left;
    width: 150px;
    color: #9e9282;
    font-size: 13px;
    line-height: 26px;
}

.nx-result dd {
    margin: 0 0 0 150px;
    color: #fff;
    font-size: 14px;
    line-height: 26px;
}

.nx-result .nx-actions a {
    color: #ffd29a;
}

/* GC shop (buy-gc.php): list of the player's recent GC orders. */
.gc-buy {
    margin-top: 10px;
}

.gc-orders-title {
    margin: 24px 0 8px;
    color: #ffd29a;
    font-size: 15px;
    font-weight: 500;
}

.gc-orders {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    line-height: 22px;
}

.gc-orders a {
    color: #ffd29a;
}

/* Shared GC panel (buy-gc.php and the account page) */
.gc-panel-title {
    margin: 30px 0 12px;
    color: #ffd29a;
    font-size: 18px;
    font-weight: 500;
}

/* Highlighted GC balance badge */
.gc-panel .gc-balance {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 0 0 18px;
    padding: 10px 18px;
    border: 1px solid #d88b00;
    border-left: 4px solid #ffa90f;
    background: linear-gradient(90deg, rgba(255, 169, 15, .18), rgba(255, 169, 15, .04));
    box-shadow: 0 0 14px rgba(255, 169, 15, .15);
}

.gc-panel .gc-balance-label {
    color: #f0e2c6;
    font-size: 15px;
    letter-spacing: .3px;
}

.gc-panel .gc-balance-value {
    color: #ffc24a;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 0 8px rgba(255, 169, 15, .45);
}

.gc-panel .gc-balance-value small {
    color: #ffd29a;
    font-size: 14px;
    font-weight: 500;
}

/* Card payment notice under the packages: must catch the eye */
.gc-card-notice {
    position: relative;
    margin: 4px 0 14px;
    padding: 14px 18px 14px 52px;
    border: 1px solid #ffa90f;
    background: rgba(255, 169, 15, .12);
    color: #fff3dc;
    font-size: 15px;
    font-weight: 600;
    line-height: 22px;
}

.gc-card-notice::before {
    content: "!";
    position: absolute;
    top: 50%;
    left: 14px;
    width: 26px;
    height: 26px;
    margin-top: -13px;
    border-radius: 50%;
    background: #ffa90f;
    color: #1c1a17;
    font-size: 17px;
    font-weight: 700;
    line-height: 26px;
    text-align: center;
}

.gc-login-to-buy {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
}

/* "My orders": a separate, collapsible category */
.gc-orders-box {
    margin: 22px 0 0;
    border: 1px solid #3a352d;
    background: #1c1a17;
}

.gc-orders-box > summary {
    padding: 12px 16px;
    cursor: pointer;
    color: #ffd29a;
    font-size: 15px;
    font-weight: 500;
    list-style: none;
    user-select: none;
}

.gc-orders-box > summary::-webkit-details-marker {
    display: none;
}

.gc-orders-box > summary::before {
    content: "\25B8";
    display: inline-block;
    width: 18px;
    transition: transform .15s ease-in-out;
}

.gc-orders-box[open] > summary::before {
    transform: rotate(90deg);
}

.gc-orders-box > summary:hover,
.gc-orders-box > summary:focus-visible {
    color: #ffa90f;
}

.gc-orders-box > .nx-empty {
    padding: 0 16px 14px;
}

.gc-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.gc-orders-table th,
.gc-orders-table td {
    padding: 8px 16px;
    border-top: 1px solid #2c2923;
    text-align: left;
}

.gc-orders-table th {
    color: #9e9282;
    font-weight: 500;
}

.gc-orders-table a {
    color: #ffd29a;
}

.gc-status-credited {
    color: #7fd47f;
}

.gc-status-manual_review,
.gc-status-failed,
.gc-status-cancelled {
    color: #ff6b4a;
}

@media (max-width: 640px) {
    .gc-orders-table th:nth-child(4),
    .gc-orders-table td:nth-child(4) {
        display: none;
    }

    .gc-orders-table th,
    .gc-orders-table td {
        padding: 8px;
    }
}

/* On-site GC payment page (gc-pay.php): our order summary + Shopier's hosted checkout in an iframe */
.gc-pay-summary {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 18px;
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid #3a352d;
    background: #1c1a17;
    font-size: 14px;
}

.gc-pay-summary dt {
    color: #9e9282;
}

.gc-pay-summary dd {
    margin: 0;
    color: #ffd29a;
}

.gc-pay-status {
    margin: 0 0 14px;
    padding: 12px 16px;
    border-left: 3px solid #d88b00;
    background: #1c1a17;
    color: #c4b69b;
}

.gc-pay-status p {
    margin: 6px 0 0;
    font-size: 13px;
}

.gc-pay-status.gc-status-credited {
    border-left-color: #6fbf6f;
    color: #7fd47f;
}

.gc-pay-status.gc-status-failed,
.gc-pay-status.gc-status-cancelled,
.gc-pay-status.gc-status-manual_review {
    border-left-color: #ff6b4a;
    color: #ff8a6e;
}

.gc-pay-frame {
    position: relative;
    margin: 0 0 10px;
    border: 1px solid #3a352d;
    background: #fff;
}

.gc-pay-frame iframe {
    display: block;
    width: 100%;
    height: 980px;
    border: 0;
}

.gc-pay-fallback {
    margin: 0 0 14px;
    font-size: 12px;
    color: #9e9282;
}

.gc-pay-fallback a {
    color: #ffd29a;
}

@media (max-width: 640px) {
    .gc-pay-frame iframe {
        height: 1150px;
    }
}

.gc-pay .nx-actions a {
    color: #ffd29a;
}

.gc-pay-declined {
    color: #ff8a6e;
}

/* Shopier's contact / delivery step: only the form fields and its fixed "Ödemeye geç" bar fit; the order summary
   below stays out of view (still reachable by scrolling inside the frame). Removed once Shopier moves on. */
.gc-pay-frame iframe.is-compact {
    height: 720px;
}

/* First (hidden) "Hemen al" post: Shopier may answer with a "sold out" notice while it cleans its basket. */
.gc-pay-frame iframe.is-preparing {
    visibility: hidden;
}

.gc-pay-loading {
    display: none;
    position: absolute;
    top: 120px;
    left: 0;
    right: 0;
    margin: 0;
    text-align: center;
    color: #555;
    font-size: 14px;
}

.gc-pay-frame iframe.is-preparing + .gc-pay-loading {
    display: block;
}

@media (max-width: 640px) {
    .gc-pay-frame iframe[name="shopier-payment-iframe"] {
        height: 1150px !important;
    }
}
