.ibm-14 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
}

.ibm-16 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
}

/* Kanit Regular */
.kanit-12 {
    font-family: 'Kanit', sans-serif;
    font-size: 12px;
    font-weight: 400;
}

.kanit-16 {
    font-family: 'Kanit', sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.kanit-18 {
    font-family: 'Kanit', sans-serif;
    font-size: 18px;
    font-weight: 400;
}

/* Kanit Bold */
.kanitb-16 {
    font-family: 'Kanit', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.kanitb-18 {
    font-family: 'Kanit', sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.kanitb-22 {
    font-family: 'Kanit', sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.kanitb-24 {
    font-family: 'Kanit', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.kanitb-26 {
    font-family: 'Kanit', sans-serif;
    font-size: 26px;
    font-weight: 700;
}

.kanitb-28 {
    font-family: 'Kanit', sans-serif;
    font-size: 28px;
    font-weight: 700;
}

/* Chonburi Bold */
.chbb-36 {
    font-family: 'Chonburi', serif;
    font-size: 36px;
    font-weight: 700;
}


/* ═════════════════════════════════════════════════════════
   Magazine — Shared (Variables, Buttons, Modal, Overlay)
   ═════════════════════════════════════════════════════════ */

:root {
    --mag-red: #9A1914;
    --mag-red2: #9A1914;
    --mag-black: #000000;
    --mag-gray: #f5f5f3;
    --mag-border: #e5e5e5;
    --mag-text: #333;
    --mag-muted: #000000;
    --mag-radius: 8px;
    --mag-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.btn-mag {
    display: inline-block;
    padding: 11px 28px;
    background: var(--mag-red);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: .3px;
    transition: background .2s, transform .1s;
    text-decoration: none;
    text-align: center;
}

.btn-mag:hover {
    background: var(--mag-red2);
    color: #fff;
}

.btn-mag:active {
    transform: scale(.98);
}

.btn-mag.block {
    display: block;
    width: 100%;
    padding: 13px;
    font-size: 15px;
}

.btn-mag.outline {
    background: transparent;
    color: var(--mag-red);
    border: 1.5px solid var(--mag-red);
}

.btn-mag.outline:hover {
    background: var(--mag-red);
    color: #fff;
}

.mag-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.mag-overlay.show {
    display: flex;
}

.mag-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 28px 24px 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .18);
}

.mag-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 22px;
    cursor: pointer;
    color: var(--mag-muted);
    background: none;
    border: none;
}

.mag-modal-close:hover {
    color: var(--mag-black);
}

.back-link {
	font-family: 'Kanit', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--mag-muted);
    text-decoration: none;
    margin-bottom: 22px;
    transition: color .2s;
}

.back-link:hover {
    color: var(--mag-black);
}

.disabled-link {
    pointer-events: none;
    opacity: .35;
}


/* ═════════════════════════════════════════════════════════
   Magazine — Channel Page
   ═════════════════════════════════════════════════════════ */

.ch-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--mag-black);
    border-left: 3px solid var(--mag-red);
    padding-left: 10px;
    margin: 0 0 16px;
}

/* Section 1: 4 col มีปุ่มซื้อ */
.ch-grid-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

/* Section 2: 5 col display only */
.ch-grid-prev {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 80px;
    margin-bottom: 32px;
}

.ch-icard .ch-cover {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform .2s, box-shadow .2s;
}

.ch-icard:hover .ch-cover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.ch-icard .ch-cover img {
    width: 100%;
    display: block;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: #eee;
}

.ch-icard.dimmed .ch-cover img {
    filter: grayscale(20%);
    opacity: .85;
}

.ch-pre-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--mag-red);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

.ch-month {
    font-size: 12px;
    color: var(--mag-muted);
    margin-bottom: 10px;
}

.ch-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--mag-red);
    margin-bottom: 7px;
}

/* ปุ่มซื้อ */
.ch-ibtn {
    display: block;
    width: 100%;
    padding: 7px 0;
    background: var(--mag-red);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    transition: background .15s;
}

.ch-ibtn:hover {
    background: var(--mag-red2);
    color: #fff;
}

.ch-ibtn.pre {
	font-family: 'Kanit', sans-serif;
    background: #9A1914;
    color: #fff;
    box-shadow: 0px 4px 4px 0px #00000040;
	border-radius: 4px;

}

.ch-ibtn.pre:hover {
    background: var(--mag-red);
    color: #fff;
}

/* ปุ่ม disabled เมื่อ price = 0 */
.ch-ibtn.disabled {
    background: #ccc;
    color: #fff;
    border: none;
    cursor: not-allowed;
    pointer-events: none;
    opacity: .6;
}

/* Sub section 50/50 */
.ch-sub-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.ch-sub-box {
    overflow: hidden;
    background: #fff;
}

.ch-sub-head {
    padding: 14px 0;
    color: var(--mag-black);
}

.ch-sub-body {
    padding: 14px 0;
}

.ch-plan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border: 1.5px solid var(--mag-border);
    margin-bottom: 20px;
    cursor: pointer;
    background: #fff;
    transition: border-color .2s, background .15s;
    user-select: none;
}

.ch-plan:hover, .ch-plan.active {
    border-color: var(--mag-red);
    background: #fff8f8;
}

.ch-plan-label {
	font-family: 'Kanit', sans-serif;
    font-size: 14px;
    color: var(--mag-black);
}

.ch-plan-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--mag-red);
}

.ch-sub-btn {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 12px;
    background: var(--mag-red);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
}

.ch-sub-btn:hover {
    background: var(--mag-red2);
}

.ch-banner {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Hero */

.ch-hero-bg {
    background: var(--mag-gray);
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 28px;
    overflow: hidden;
	padding: 15px 0;
}
.ch-hero-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.ch-hero-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 340px;
}

.ch-hero-kicker {
    font-size: 12px;
    font-weight: 600;
    color: var(--mag-muted);
    letter-spacing: .5px;
    margin-bottom: 8px;
}

.ch-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--mag-black);
    line-height: 1.25;
    margin: 0 0 12px;
}

.ch-hero-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    /*max-width: 480px;*/
}

.ch-hero-cover {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}

.ch-hero-cover img {
    width: auto;
    max-width: 100%;
    max-height: 300px;
    display: block;
    object-fit: contain;
}

/* FAQ */
.ch-faq {
    margin-top: 32px;
}

.ch-faq-title {
	font-family: 'Kanit-bold', sans-serif;
    font-size: 15px;
    color: var(--mag-black);
    margin: 0 0 12px;
}

.ch-faq-item {
    border: 1px solid var(--mag-border);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    background: #fff;
}

.ch-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
	font-family: 'Kanit', sans-serif;
    font-size: 14px;
    color: var(--mag-black);
    transition: background .15s;
}

.ch-faq-q:hover {
    background: #fafafa;
}

.ch-faq-icon {
    flex-shrink: 0;
    transition: transform .25s;
}

.ch-faq-item.open .ch-faq-icon {
    transform: rotate(180deg);
}

.ch-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
	font-family: 'Kanit', sans-serif;
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    padding: 0 18px;
}

.ch-faq-item.open .ch-faq-a {
    max-height: 400px;
    padding: 0 18px 16px;
}

/* Responsive */
@media(max-width:1024px) {
    .ch-grid-main {
        grid-template-columns: repeat(3, 1fr);
    }

    .ch-grid-prev {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media(max-width:768px) {
	.ch-banner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
     .ch-hero {
        width: 100vw;
        left: -15px;
        margin-left: 0;
        margin-right: 0;
    }
	.ch-hero-inner {
        flex-direction: column;
        max-width: 100%;
        padding: 0
    }

    .ch-hero-cover {
        width: 100%;
        min-height: 200px;
        order: -1;
        max-height: max-content;
    }

    .ch-hero-body {
        min-height: auto;
        padding: 24px 0 16px;
    }

    .ch-hero-title {
        font-size: 22px;
    }

    .ch-grid-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .ch-grid-prev {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .ch-sub-section {
        grid-template-columns: 1fr;
    }
	.ch-hero-cover {
        min-height: auto;
        justify-content: center;
        padding: 20px 0;
    }
    .ch-hero-cover img {
        max-width: 60%;
        height: auto;
    }
}

@media(max-width:480px) {
    .ch-grid-main, .ch-grid-prev {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}


/* ═════════════════════════════════════════════════════════
   Magazine — Issue Detail Page
   ═════════════════════════════════════════════════════════ */

/* ═══ SECTION 1 – Detail ═══ */
.id-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.id-cover-area {
    position: relative;
}

/* Gallery */
.id-cover-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/images/icons/gbbook.jpg') center center / cover no-repeat;
    width: 100%;
    min-height: 400px;
    padding: 24px 32px;
    box-sizing: border-box;
}

.id-cover-main img#mainCoverImg {
    position: relative;         /* ให้อยู่บน bg */
    display: block;
    max-height: 320px;          /* ปรับตามสัดส่วนที่ต้องการ */
    max-width: 100%;
    object-fit: contain;
    /* เงาเพิ่มความลึกให้ปกลอยเหนือ bg */
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.18));
}

.id-thumb {
    width: 60px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .2s;
    flex-shrink: 0;
}

.id-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.id-thumb.active {
    border-color: var(--mag-red);
}

/* pre-order badge (top) */
.id-pre-pill {
    display: inline-block;
    background: var(--mag-red);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
	    line-height: 1.1;
}

.id-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.id-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--mag-black);
    margin: 0 0 12px;
    line-height: 1.3;
}

.id-desc {
	font-family: 'Kanit', sans-serif;
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 18px;
}

.id-meta {
    font-size: 14px;
    color: var(--mag-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.id-meta strong {
    color: var(--mag-black);
}

.id-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--mag-red);
    margin: 16px 0 20px;
}

.id-qty-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 60px;
}

.id-qty-label {
    font-size: 14px;
    color: var(--mag-muted);
    font-weight: 500;
}

.id-qty-ctrl {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--mag-border);
    border-radius: 8px;
    overflow: hidden;
}

.id-qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #fff;
    font-size: 20px;
    cursor: pointer;
    color: var(--mag-black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
}

.id-qty-btn:hover {
    background: var(--mag-gray);
}

.id-qty-val {
    min-width: 52px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--mag-black);
    border-left: 1.5px solid var(--mag-border);
    border-right: 1.5px solid var(--mag-border);
}

/* ปุ่มซื้อ/pre-order */
.id-buy-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: background .2s;
}

.id-buy-btn.normal {
    background: var(--mag-red);
    color: #fff;
}

.id-buy-btn.normal:hover {
    background: var(--mag-red2);
}

.id-buy-btn.preorder {
    background: var(--mag-red2);
    color: #fff;
}

.id-buy-btn.preorder:hover {
    background: var(--mag-red2);
}

.id-buy-btn.disabled {
    background: #ccc;
    color: #fff;
    cursor: not-allowed;
    pointer-events: none;
}

/* shipping detail ใต้ปุ่ม */
.id-ship-detail {
    margin-top: 20px;
    font-size: 12px;
    color: var(--mag-red);
}

/* ═══ SECTION 2 – Checkout ═══ */
#sectionCheckout, #sectionPayment {
    display: none;
}

.ck-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 28px;
    align-items: start;
}

.ck-form-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--mag-black);
    margin: 0 0 20px;
}

.ck-field {
    margin-bottom: 15px;
}

.ck-field label {
    display: none;
}

.ck-input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--mag-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--mag-black);
    background: #f5f5f5;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .2s, background .2s;
}

.ck-input:focus {
    outline: none;
    border-color: var(--mag-red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(192, 39, 45, .07);
}

.ck-input::placeholder {
    color: #999;
}

.ck-hint {
    font-size: 11px;
    color: #A7A7A7;
    margin-top: 20px;
}

.ck-input-suggest {
    position: relative;
}

.btn-mappin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 9px 16px;
    border: 1px solid var(--mag-border);
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    color: var(--mag-black);
    cursor: pointer;
    font-family: inherit;
    transition: border-color .2s;
}

.btn-mappin:hover {
    border-color: var(--mag-red);
    color: var(--mag-red);
}

.btn-mappin.pinned {
    border-color: #1a7c4f;
    color: #1a7c4f;
    background: #f0faf5;
}

.tt-cursor, .tt-suggestion:hover {
    background: #f5f5f5;
}

.tt-suggestion {
    padding: 10px 5px;
    background: #fff;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.tt-suggestion {
    color: #626262;
    padding: 3px 7px 4px;
    padding-left: 26px;
    line-height: 24px;
}

.tt-menu {
    width: 100%;
    border: 1px solid #eee;
    border-top: none;
}

.tt-menu {
    width: 100%;
    padding: 3px 10px 3px 3px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-top: 0;
    border-bottom-right-radius: 2px;
    border-bottom-left-radius: 2px;
    -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
}
.ck-input-suggest .twitter-typeahead {
    display: block !important;
    width: 100% !important;
}

.ck-input-suggest .twitter-typeahead .ck-input {
    width: 100% !important;
    box-sizing: border-box !important;
}

.ck-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--mag-black);
    margin: 16px 0 0;
}

.ck-agree input {
    margin-top: 2px;
    cursor: pointer;
}

.ck-agree a {
    color: var(--mag-red);
    text-decoration: underline;
}

/* Summary box */
.ck-summary {
    background: #fff;
    border: 1.5px solid var(--mag-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--mag-shadow);
    position: sticky;
    top: 20px;
}

.ck-sum-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--mag-border);
    font-size: 14px;
    font-weight: 600;
    color: var(--mag-black);
}

.ck-sum-item {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--mag-border);
    align-items: flex-start;
}

.ck-sum-thumb {
    width: 100px;
    flex-shrink: 0;
}

.ck-sum-thumb img {
    width: 100%;
    display: block;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.ck-sum-info {
    flex: 1;
    min-width: 0;
}

.ck-sum-badge {
    display: inline-block;
    background: var(--mag-red);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 6px;
}

.ck-sum-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--mag-black);
    margin-bottom: 5px;
	margin-top: 5px;
    line-height: 1.4;
}

.ck-sum-meta {
    font-size: 12px;
    color: var(--mag-muted);
    line-height: 1.8;
}

.ck-promo-wrap {
    margin: 14px 18px 14px;
}

.ck-promo {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--mag-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.ck-promo-icon {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mag-muted);
    flex-shrink: 0;
}

.ck-promo input {
    flex: 1;
    padding: 11px 8px;
    border: none;
    font-size: 13px;
    font-family: inherit;
    background: transparent;
    outline: none;
    color: var(--mag-black);
}

.ck-promo input::placeholder {
    color: #000000;
}

.ck-promo-btn {
    padding: 8px 14px;
    background: none;
    border: none;
    border-left: 1px solid var(--mag-border);
    font-size: 13px;
    color: var(--mag-red);
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
}

.ck-promo-btn:hover {
    background: #fff8f8;
}

.ck-promo-msg {
    margin-top: 6px;
    font-size: 12px;
}

.ck-promo-msg.ok {
    color: #1a7c4f;
}

.ck-promo-msg.err {
    color: var(--mag-red);
}

.ck-totals {
    padding: 14px 18px;
    border-top: 1px solid var(--mag-border);
}

.ck-trow {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--mag-black);
    padding: 4px 0;
}

.ck-trow.discount {
    color: #1a7c4f;
}

.ck-trow.grand {
    font-size: 16px;
    font-weight: 700;
    border-top: 1.5px solid var(--mag-border);
    margin-top: 8px;
    padding-top: 12px;
}

.ck-trow.grand .val {
    color: var(--mag-red);
}

.ck-trow .free {
    color: #1a7c4f;
    font-weight: 500;
}

.ck-pay-btn {
    display: block;
    width: calc(100% - 36px);
    margin: 4px 18px 14px;
    padding: 14px;
    background: var(--mag-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Kanit', sans-serif;
    transition: background .2s;
}
.img-detail {
	display:grid;
	grid-template-columns:repeat(4,1fr);
	gap:12px;
	margin-top:24px;
}
.ck-pay-btn:hover {
    background: var(--mag-red2);
}

.ck-pay-logos {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    padding: 0 18px 14px;
}

.ck-pay-logos img {
    height: 22px;
    border-radius: 3px;
}

/* ═══ SECTION 3 – Payment ═══ */
.pm-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

.pm-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--mag-black);
    margin: 0 0 20px;
}

/* payment method cards */
.pm-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 2px solid var(--mag-border);
    margin-bottom: 12px;
    cursor: pointer;
    background: #fff;
    transition: border-color .2s, background .15s;
    user-select: none;
}

.pm-method:hover {
    border-color: #ccc;
}

.pm-method.active {
    border-color: var(--mag-red);
    background: #fff8f8;
}

.pm-method-icon {
    width: 60px;
    height: 40px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.pm-method-icon img {
    max-height: 28px;
    max-width: 52px;
    object-fit: contain;
    display: block;
}

.pm-method-icon svg {
    display: block;
}

.pm-method-text {
    flex: 1;
}

.pm-method-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--mag-black);
}

.pm-method-sub {
    font-size: 12px;
    color: var(--mag-muted);
    margin-top: 2px;
}

.pm-radio {
    width: 18px;
    height: 18px;
    accent-color: var(--mag-red);
    flex-shrink: 0;
    cursor: pointer;
}

/* summary box ใต้ payment method */
.pm-order-sum {
    margin-top: 22px;
    padding: 16px 18px;
    background: #f9f9f9;
    border: 1px solid var(--mag-border);
}

.pm-order-sum-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--mag-black);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--mag-border);
}

.pm-sum-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--mag-black);
    padding: 4px 0;
}

.pm-sum-row.grand {
    font-size: 16px;
    font-weight: 700;
    border-top: 1.5px solid var(--mag-border);
    margin-top: 8px;
    padding-top: 12px;
}

.pm-sum-row.grand .val {
    color: var(--mag-red);
}

/* ปุ่มยืนยัน — อยู่ใต้ summary ฝั่งซ้าย */
.pm-confirm-btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 15px;
    background: var(--mag-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
}

.pm-confirm-btn:hover {
    background: var(--mag-red2);
}

/* right column boxes */
.pm-right-box {
    background: #fff;
    border: 1.5px solid var(--mag-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--mag-shadow);
    margin-bottom: 14px;
}

.pm-right-box-head {
    padding: 13px 18px;
    border-bottom: 1px solid var(--mag-border);
    font-size: 14px;
    font-weight: 600;
    color: var(--mag-black);
}

.pm-right-box-body {
    padding: 14px 18px;
}

.pm-right-row {
    font-size: 13px;
    color: var(--mag-black);
    margin-bottom: 4px;
    line-height: 1.6;
}

/* สินค้าใน right box */
.pm-product-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-top: 10px;
    margin-top: 4px;
}

.pm-product-thumb {
    width: 72px;
    flex-shrink: 0;
}

.pm-product-thumb img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
    display: block;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.pm-product-badge {
    display: inline-block;
    background: var(--mag-red);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 6px;
}

.pm-product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--mag-black);
    margin-bottom: 4px;
    line-height: 1.4;
}

.pm-product-meta {
    font-size: 12px;
    color: var(--mag-muted);
    line-height: 1.8;
}

/* ราคารวม right box — ใหญ่ชัดเจน */
.pm-total-display {
    background: #fff;
    border: 1.5px solid var(--mag-border);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: var(--mag-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pm-total-display .label {
    font-size: 15px;
    font-weight: 700;
    color: var(--mag-black);
}

.pm-total-display .amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--mag-red);
}

/* Map */
.map-search {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--mag-border);
}

.map-search input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--mag-border);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
}

.map-search input:focus {
    border-color: var(--mag-red);
}

.map-search button {
    padding: 8px 14px;
    background: var(--mag-red);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}

.map-addr {
    padding: 11px 16px;
    font-size: 13px;
    color: var(--mag-black);
    background: #f9f9f9;
    border-bottom: 1px solid var(--mag-border);
    min-height: 42px;
}

#mapDiv {
    width: 100%;
    height: 300px;
    background: #e8e0d8;
}

.map-confirm {
    display: block;
    width: calc(100% - 32px);
    margin: 12px 16px;
    padding: 11px;
    background: var(--mag-red);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

/* Responsive */
@media(max-width:900px) {
    .id-wrap {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .ck-layout {
        grid-template-columns: 1fr 360px;
    }

    .pm-layout {
        grid-template-columns: 1fr 300px;
    }
}

@media(max-width:768px) {
	.id-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 18px;
    max-width: 480px;
    word-break: break-word;
    overflow-wrap: break-word;
}
	.id-ship-detail {
		text-align:center;
	}
	.img-detail {
		display:grid;
		grid-template-columns:repeat(2,2fr);
		gap:12px;
		margin-top:24px;
	}
    .id-wrap, .ck-layout, .pm-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .id-cover-area {
        position: static;
    }

    .ck-summary, .pm-total-display {
        position: static;
    }

    .ck-sum-item {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .ck-sum-thumb {
        width: 100px;
    }

    .pm-product-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pm-product-thumb {
        width: 100px;
    }

    /* mobile: right column ขึ้นมาก่อน */
    .pm-layout>div:last-child {
        order: -1;
    }
}

@media(max-width:480px) {
    .id-price {
        font-size: 24px;
    }

    .id-title {
        font-size: 20px;
    }

    .id-qty-row {
        flex-wrap: wrap;
        gap: 8px;
		margin-bottom: 45px;
    }

    .id-buy-btn {
        font-size: 14px;
        padding: 12px;
    }

    .ck-layout {
        gap: 16px;
    }

    .ck-pay-logos img {
        height: 18px;
    }

    .pm-layout {
        gap: 16px;
    }

    .map-search {
        flex-direction: column;
    }

    .map-search input, .map-search button {
        width: 100%;
        box-sizing: border-box;
    }
}


/* ═════════════════════════════════════════════════════════
   Magazine — Checkout Page (ck2)
   ═════════════════════════════════════════════════════════ */

/* ── Outer background ────────────────────────────────────── */
.ck2-outer {
    border-radius: 6px;
}

/* ── Layout 50/50 ────────────────────────────────────────── */
.ck2-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

/* ── Panel (ซ้าย/ขวา) ───────────────────────────────────── */
.ck2-panel {
    background: #fff;
    border-radius: 6px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

/* ── Section title ───────────────────────────────────────── */
.ck2-sec-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--mag-black);
    margin: 0 0 16px;
}

/* ── Payment method ──────────────────────────────────────── */
.ck2-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1.5px solid var(--mag-border);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    background: #fff;
    transition: border-color .2s, background .15s;
    user-select: none;
}

.ck2-method:hover {
    border-color: #bbb;
}

.ck2-method.active {
    border-color: var(--mag-red);
    background: #fff8f8;
}

.ck2-method-icon {
    width: 56px;
    height: 36px;
    border: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.ck2-method-name {
	font-family: 'Kanit', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--mag-black);
    flex: 1;
}

.ck2-radio {
    width: 18px;
    height: 18px;
    accent-color: var(--mag-red);
    flex-shrink: 0;
    cursor: pointer;
}

/* ── QR Box ──────────────────────────────────────────────── */
.ck2-qr-box {
    display: none;
    margin-top: 12px;
    padding: 16px;
    border: 1px dashed var(--mag-border);
    border-radius: 8px;
    background: #fafafa;
    text-align: center;
}

.ck2-qr-box.show {
    display: block;
}

.ck2-qr-img {
    width: 180px;
    height: 180px;
    margin: 0 auto 10px;
    display: block;
    border-radius: 6px;
}

.ck2-qr-amount {
	font-family: 'Kanit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--mag-red);
}

.ck2-qr-loader {
    font-size: 13px;
    color: var(--mag-muted);
    padding: 16px 0;
}

.ck2-qr-notice {
    background: #fff8f8;
    border: 1px solid #fddcdc;
    border-radius: 6px;
    padding: 10px 12px;
	font-family: 'Kanit', sans-serif;
    font-size: 12px;
    color: #8b3a3a;
    margin-top: 10px;
    text-align: left;
    line-height: 1.6;
}

/* ── Order summary (ซ้ายล่าง) ────────────────────────────── */
.ck2-summary-sep {
    border: none;
    border-top: 1px solid var(--mag-border);
    margin: 20px 0;
}

.ck2-summary-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--mag-black);
    margin: 0 0 12px;
}

.ck2-price-row {
    display: flex;
    justify-content: space-between;
	font-family: 'Kanit', sans-serif;
    font-size: 14px;
    color: var(--mag-black);
    padding: 4px 0;
}

.ck2-price-row.discount {
    color: #1a7c4f;
}

.ck2-price-row.free {
    color: #1a7c4f;
    font-weight: 500;
}

.ck2-price-row.grand {
    font-size: 15px;
    font-weight: 700;
    border-top: 1.5px solid var(--mag-border);
    margin-top: 8px;
    padding-top: 10px;
}

.ck2-price-row.grand span:last-child {
    color: var(--mag-red);
}

/* ── Confirm btn ─────────────────────────────────────────── */
.ck2-confirm-btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    background: var(--mag-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Kanit', sans-serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background .2s;
    text-decoration: none;
    text-align: center;
}

.ck2-confirm-btn:hover {
    background: var(--mag-red2);
    color: #fff;
}

.ck2-confirm-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ── Right panel sections ────────────────────────────────── */

.ck2-sep {
    border: none;
    border-top: 1px solid var(--mag-border);
    margin: 16px 0;
}

.ck2-right-sec-title {
    font-family: 'Kanit', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: var(--mag-black);
    margin: 0 0 12px;
}

.ck2-ship-line {
	font-family: 'Kanit', sans-serif;
    font-size: 16px;
    color: var(--mag-black);
    line-height: 1.9;
}

/* product row */
.ck2-prod-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.ck2-prod-thumb {
    width: 100px;
    flex-shrink: 0;
}

.ck2-prod-thumb img {
    width: 100%;
    display: block;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.ck2-prod-info {
    flex: 1;
}

.ck2-prod-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 6px;
}

.ck2-prod-badge.preorder {
    background: #fde8e9;
    color: var(--mag-red);
    border: 1px solid #fbbcbe;
}

.ck2-prod-badge.subscribe {
    background: #e8f0fe;
    color: #1a4fa0;
    border: 1px solid #b8ccfc;
}

.ck2-prod-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--mag-black);
    margin-bottom: 6px;
    line-height: 1.4;
}

.ck2-prod-meta {
    font-size: 13px;
    color: var(--mag-muted);
    line-height: 2;
}

/* ── Timer bar ───────────────────────────────────────────── */
.ck2-timer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1.5px solid var(--mag-border);
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 16px;
    box-shadow: var(--mag-shadow);
}

.ck2-timer-label {
	font-family: 'Kanit', sans-serif;
    font-size: 14px;
    color: var(--mag-muted);
}

.ck2-timer-val {
	font-family: 'Kanit', sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: var(--mag-black);
    font-variant-numeric: tabular-nums;
}

/* ── Expire overlay ──────────────────────────────────────── */
.ck2-expire-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.ck2-expire-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .2);
}

.ck2-expire-icon {
    font-size: 48px;
    color: var(--mag-red);
    margin-bottom: 14px;
}

.ck2-expire-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--mag-black);
    margin-bottom: 8px;
}

.ck2-expire-sub {
    font-size: 13px;
    color: var(--mag-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

@media(max-width:900px) {
    .ck2-wrap {
        grid-template-columns: 1fr;
    }

    .ck2-wrap .ck2-panel:last-child {
        order: -1;
    }
}


/* ═════════════════════════════════════════════════════════
   Magazine — Online Page
   ═════════════════════════════════════════════════════════ */

/* ── Online page ─────────────────────────────────── */
.on-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.on-cover {
    width: 70px;
    flex-shrink: 0;
}

.on-cover img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    display: block;
}

.on-kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.on-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--mag-black);
    margin: 3px 0;
}

.on-sub {
    font-size: 13px;
    color: var(--mag-muted);
}

.on-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--mag-muted);
    text-decoration: none;
    margin-bottom: 20px;
    transition: color .2s;
}

.on-back:hover {
    color: var(--mag-black);
}

.on-back svg {
    flex-shrink: 0;
}

.on-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.on-card {
    border: 1.5px solid var(--mag-border);
    border-radius: var(--mag-radius);
    padding: 28px 20px;
    background: #fff;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: border-color .2s, box-shadow .2s, transform .15s;
}

.on-card:hover {
    border-color: var(--mag-red);
    box-shadow: 0 4px 16px rgba(192, 39, 45, .1);
    transform: translateY(-3px);
}

.on-card.disabled {
    pointer-events: none;
    opacity: .35;
    cursor: default;
    transform: none;
}

.on-logo {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.on-logo img {
    max-height: 44px;
    max-width: 120px;
    object-fit: contain;
}

.on-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--mag-black);
    margin-bottom: 4px;
}

.on-card-desc {
    font-size: 12px;
    color: var(--mag-muted);
}

.on-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 10px;
    background: #f0faf5;
    color: #1a7c4f;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #b6e8cf;
}

@media (max-width:540px) {
    .on-grid {
        grid-template-columns: 1fr;
    }
}


/* ═════════════════════════════════════════════════════════
   Magazine — Order Page
   ═════════════════════════════════════════════════════════ */

/* ── Order page ──────────────────────────────────── */

/* back link */
.od-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--mag-muted);
    text-decoration: none;
    margin-bottom: 20px;
    transition: color .2s;
}

.od-back:hover {
    color: var(--mag-black);
}

/* step indicator */
.od-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 28px;
}

.od-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--mag-muted);
}

.od-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    background: #f0f0f0;
    color: var(--mag-muted);
    flex-shrink: 0;
    transition: background .3s, color .3s;
}

.od-step.active .od-step-num {
    background: var(--mag-red);
    color: #fff;
}

.od-step.done .od-step-num {
    background: #d4edda;
    color: #2d7a4a;
}

.od-step.active {
    color: var(--mag-black);
    font-weight: 500;
}

.od-sep {
    flex: 1;
    height: 1px;
    background: var(--mag-border);
    margin: 0 10px;
    max-width: 48px;
}

/* mag info strip */
.od-mag-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--mag-border);
    border-radius: var(--mag-radius);
    margin-bottom: 20px;
}

.od-mag-thumb {
    width: 56px;
    flex-shrink: 0;
}

.od-mag-thumb img {
    width: 100%;
    border-radius: 4px;
    display: block;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

.od-mag-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.od-mag-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--mag-black);
    margin: 2px 0;
}

.od-mag-sub {
    font-size: 12px;
    color: var(--mag-muted);
}

/* Step 1: package selection */
.pkg-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 8px;
}

.pkg-card {
    border: 2px solid var(--mag-border);
    border-radius: var(--mag-radius);
    padding: 18px 20px;
    cursor: pointer;
    background: #fff;
    transition: border-color .2s, background .15s, box-shadow .2s;
    position: relative;
    user-select: none;
}

.pkg-card:hover {
    border-color: #ccc;
    box-shadow: var(--mag-shadow);
}

.pkg-card.active {
    border-color: var(--mag-red);
    background: #fff8f8;
    box-shadow: 0 0 0 3px rgba(192, 39, 45, .1);
}

.pkg-card.active .pkg-check {
    opacity: 1;
}

.pkg-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: var(--mag-red);
    border-radius: 50%;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .2s;
}

.pkg-check svg {
    width: 11px;
    height: 11px;
}

.pkg-label {
    font-size: 13px;
    color: var(--mag-muted);
    margin-bottom: 4px;
}

.pkg-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--mag-black);
}

.pkg-price span {
    font-size: 13px;
    font-weight: 400;
    color: var(--mag-muted);
}

/* Step 2: form */
.od-form-section {
    display: none;
}

.od-form-section.show {
    display: block;
}

.od-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--mag-black);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--mag-border);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.form-grid.full {
    grid-template-columns: 1fr;
}

.form-field label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--mag-muted);
    margin-bottom: 5px;
    letter-spacing: .3px;
}

.form-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--mag-border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--mag-black);
    background: #fafafa;
    font-family: inherit;
    transition: border-color .2s, background .2s;
    box-sizing: border-box;
}

.form-field input:focus {
    outline: none;
    border-color: var(--mag-red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(192, 39, 45, .08);
}

/* order summary box */
.od-summary {
    background: var(--mag-gray);
    border: 1px solid var(--mag-border);
    border-radius: var(--mag-radius);
    padding: 16px 18px;
    margin: 20px 0 16px;
}

.od-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--mag-text);
    padding: 5px 0;
}

.od-sum-row.total {
    border-top: 1px solid var(--mag-border);
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 600;
    font-size: 15px;
    color: var(--mag-black);
}

.od-sum-row.total .price {
    color: var(--mag-red);
    font-size: 17px;
}

.qty-ctrl {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--mag-border);
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background .15s;
}

.qty-btn:hover {
    background: var(--mag-red);
    color: #fff;
    border-color: var(--mag-red);
}

.qty-val {
    font-size: 15px;
    font-weight: 600;
    width: 24px;
    text-align: center;
}

/* payment logos */
.pay-logos {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--mag-border);
    border-radius: 6px;
}

.pay-logos span {
    font-size: 12px;
    color: var(--mag-muted);
    margin-right: 4px;
}

.pay-logos img {
    height: 22px;
}

/* agree */
.agree-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--mag-text);
    margin-bottom: 16px;
}

.agree-line input {
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.agree-line a {
    color: var(--mag-red);
    text-decoration: underline;
}

/* ── Confirm Modal ───────────────────────────────── */
.confirm-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.confirm-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.confirm-icon svg {
    width: 20px;
    height: 20px;
}

.confirm-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--mag-black);
    margin: 0 0 2px;
}

.confirm-sub {
    font-size: 12px;
    color: var(--mag-muted);
}

.confirm-divider {
    height: 1px;
    background: var(--mag-border);
    margin: 16px 0;
}

@media (max-width:540px) {
    .pkg-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .od-steps .od-step span {
        display: none;
    }
}


/* ═════════════════════════════════════════════════════════
   Magazine — Thank You Page
   ═════════════════════════════════════════════════════════ */

.ty-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    text-align: center;
}

/* icon circle */
.ty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fde8e9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.ty-icon svg {
    color: var(--mag-red);
}

.ty-title {
	font-family: 'Kanit', sans-serif;
    font-size: 22px;
    font-weight: bold;
    color: var(--mag-black);
    margin: 0 0 8px;
}

.ty-sub {
	font-family: 'Kanit', sans-serif;
    font-size: 14px;
    color: #696969;
    margin: 0 0 32px;
    line-height: 1.7;
}

/* info grid */
.ty-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
    text-align: left;
}

.ty-cell {
    background: #f7f7f7;
    border-radius: 10px;
    padding: 16px 18px;
}

.ty-cell-label {
	font-family: 'Kanit', sans-serif;
    font-size: 16px;
    color: #696969;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.ty-cell-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--mag-black);
    line-height: 1.4;
}

.ty-cell-val.red {
    color: var(--mag-red);
}

/* action buttons */
.ty-actions {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.ty-btn {
	width: 200px;
    display: block;
    padding: 13px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
    transition: background .2s, border-color .2s;
}

.ty-btn.outline {
	font-family: 'Kanit', sans-serif;
    background: #fff;
    color: var(--mag-black);
    border: 1.5px solid var(--mag-border);
}

.ty-btn.outline:hover {
    border-color: var(--mag-black);
}

@media(max-width:480px) {
    .ty-grid {
        grid-template-columns: 1fr;
    }

    .ty-actions {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════════════
   Magazine — Font Class Overrides (applied via utility classes)
   ═══════════════════════════════════════════════════════════ */

/* ibm-16 */
.ch-month {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
}

/* kanitb-26 */
.ch-price,
.id-price,
.ck-form-title,
.ck2-sec-title {
    font-family: 'Kanit', sans-serif;
    font-size: 26px;
    font-weight: 700;
}

/* chbb-36 */
.ch-heading {
    font-family: 'Chonburi', serif;
    font-size: 36px;
    font-weight: 700;
}

/* kanit-16 */
.ch-hero-desc,
.ck-agree,
.ck-input,
.ck-promo-wrap {
    font-family: 'Kanit', sans-serif;
    font-size: 16px;
    font-weight: 400;
}

/* kanit-18 */
.ch-hero-kicker,
.Subtotal,
.sumSubtotal,
.ck-trow,
.ck-sum-meta,
.ck2-prod-meta {
    font-family: 'Kanit', sans-serif;
    font-size: 18px;
    font-weight: 400;
}

/* kanitb-18 */
.id-qty-label,
.ck-sum-name,
.ck2-prod-name {
    font-family: 'Kanit', sans-serif;
    font-size: 18px;
    font-weight: 700;
}

/* kanitb-28 */
.ch-hero-title,
.ck-trow.grand {
    font-family: 'Kanit', sans-serif;
    font-size: 28px;
    font-weight: 700;
}

/* kanitb-24 */
.id-title {
    font-family: 'Kanit', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

/* id-pre-pill, ck-sum-badge, ck2-prod-badge.preorder — ibm-14 + brand colors */
.id-pre-pill,
.ck-sum-badge,
.ck2-prod-badge.preorder {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    background-color: #9A19144D;
    color: #9A1914;
}

/* id-meta — split into label vs date */
.id-meta-label {
    font-family: 'Kanit', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

/* kanitb-16 */
.id-meta-date {
    font-family: 'Kanit', sans-serif;
    font-size: 16px;
    font-weight: 400;
}

/* kanit-16 */

/* ibm-14 */
.id-ship-detail {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
}

/* kanit-18 */
.ck-sum-head a {
    font-family: 'Kanit', sans-serif;
    font-size: 18px;
    font-weight: 400;
	color: #A7A7A7;
    text-decoration: none;
}

/* kanit-12 — overrides kanit-16 above */
.ck-hint {
    font-family: 'Kanit', sans-serif;
    font-size: 12px;
    font-weight: 400;
}

/* ck2-summary-title — kanitb-16 */
.ck2-summary-title {
    font-family: 'Kanit', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

/* ck2-price-row.grand — split label/amount */
.ck2-price-row.grand .grand-label {
    font-family: 'Kanit', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

/* kanitb-16 */
.ck2-price-row.grand .grand-amount {
    font-family: 'Kanit', sans-serif;
    font-size: 22px;
    font-weight: 700;
}

/* kanitb-22 */