:root {
    --mscert-bg: #f7efe3;
    --mscert-card: #fffaf2;
    --mscert-dark: #2f1b10;
    --mscert-text: #5a4130;
    --mscert-muted: #8b7463;
    --mscert-gold: #c7a36b;
    --mscert-gold-2: #e7cf99;
    --mscert-border: rgba(199, 163, 107, .42);
    --mscert-ease: cubic-bezier(.22, 1, .36, 1);
}

.mscert-page {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 110px 28px;
    background:
        radial-gradient(circle at 20% 15%, rgba(231, 207, 153, .26), transparent 32%),
        radial-gradient(circle at 85% 70%, rgba(199, 163, 107, .22), transparent 34%),
        var(--mscert-bg);
    color: var(--mscert-dark);
}

.mscert-bg-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    opacity: .35;
    pointer-events: none;
}

.mscert-bg-orb--one {
    width: 360px;
    height: 360px;
    left: -140px;
    top: 160px;
    background: rgba(199, 163, 107, .42);
}

.mscert-bg-orb--two {
    width: 460px;
    height: 460px;
    right: -180px;
    bottom: -120px;
    background: rgba(255, 255, 255, .72);
}

.mscert-shell {
    position: relative;
    z-index: 2;
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(360px, 560px);
    gap: 46px;
    align-items: center;
}

.mscert-preview {
    position: relative;
    min-height: 560px;
    padding: 24px;
    border-radius: 36px;
    background: rgba(255, 250, 242, .42);
    border: 1px solid rgba(199, 163, 107, .34);
    box-shadow: 0 36px 100px rgba(47, 27, 16, .13);
    backdrop-filter: blur(18px);
}

.mscert-preview__inner {
    position: relative;
    height: 100%;
    min-height: 510px;
    padding: 48px 42px;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(255,255,255,.92), rgba(247,239,227,.84)),
        radial-gradient(circle at 20% 10%, rgba(231,207,153,.5), transparent 36%);
    border: 1px solid var(--mscert-border);
}

.mscert-preview__inner::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(199, 163, 107, .48);
    border-radius: 22px;
    pointer-events: none;
}

.mscert-preview__inner::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(199, 163, 107, .28);
    border-radius: 999px;
    right: -120px;
    top: -90px;
}

.mscert-preview[data-design="dark"] .mscert-preview__inner {
    background:
        radial-gradient(circle at 20% 10%, rgba(199,163,107,.25), transparent 38%),
        linear-gradient(135deg, #211108, #080403);
    color: #fff4dc;
}

.mscert-preview[data-design="classic"] .mscert-preview__inner {
    background: #fff;
    color: #2f1b10;
}

.mscert-preview__label {
    position: relative;
    z-index: 2;
    font-size: 13px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--mscert-gold);
    margin-bottom: 22px;
}

.mscert-preview__brand {
    position: relative;
    z-index: 2;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 68px);
    line-height: .94;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mscert-preview__amount {
    position: relative;
    z-index: 2;
    margin-top: 30px;
    font-size: 36px;
    color: var(--mscert-gold);
}

.mscert-preview__recipient,
.mscert-preview__message,
.mscert-preview__number {
    position: relative;
    z-index: 2;
}

.mscert-preview__recipient {
    margin-top: 16px;
    font-size: 18px;
}

.mscert-preview__message {
    max-width: 340px;
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.65;
    color: currentColor;
    opacity: .78;
}

.mscert-preview__line {
    position: relative;
    z-index: 2;
    width: 120px;
    height: 1px;
    margin-top: 34px;
    background: var(--mscert-gold);
}

.mscert-preview__number {
    margin-top: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: currentColor;
    opacity: .56;
}

.mscert-card {
    padding: clamp(28px, 4vw, 52px);
    border-radius: 34px;
    background: rgba(255, 250, 242, .78);
    border: 1px solid var(--mscert-border);
    box-shadow: 0 32px 90px rgba(47, 27, 16, .1);
    backdrop-filter: blur(18px);
}

.mscert-kicker {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--mscert-gold);
    margin-bottom: 14px;
}

.mscert-title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 4.7vw, 64px);
    line-height: .98;
    font-weight: 400;
    color: var(--mscert-dark);
}

.mscert-subtitle {
    margin: 18px 0 34px;
    color: var(--mscert-text);
    line-height: 1.65;
    max-width: 480px;
}

.mscert-form {
    display: grid;
    gap: 18px;
}

.mscert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mscert-field {
    display: grid;
    gap: 8px;
}

.mscert-field > span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--mscert-muted);
}

.mscert-field input,
.mscert-field textarea,
.mscert-field select {
    width: 100%;
    border: 1px solid rgba(199, 163, 107, .42);
    background: rgba(255,255,255,.62);
    border-radius: 999px;
    min-height: 52px;
    padding: 0 18px;
    color: var(--mscert-dark);
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.mscert-field textarea {
    border-radius: 24px;
    padding: 16px 18px;
    resize: vertical;
}

.mscert-field input:focus,
.mscert-field textarea:focus,
.mscert-field select:focus {
    border-color: var(--mscert-gold);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(199,163,107,.14);
}

.mscert-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.mscert-amounts button {
    border: 1px solid rgba(199, 163, 107, .5);
    background: rgba(255,255,255,.48);
    color: var(--mscert-dark);
    border-radius: 999px;
    min-height: 42px;
    padding: 0 18px;
    cursor: pointer;
    transition: all .35s var(--mscert-ease);
}

.mscert-amounts button:hover,
.mscert-amounts button.is-active {
    background: var(--mscert-dark);
    color: #fff6df;
    border-color: var(--mscert-dark);
    transform: translateY(-1px);
}

.mscert-submit {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 58px;
    border: 1px solid var(--mscert-dark);
    border-radius: 999px;
    background: var(--mscert-dark);
    color: #fff4dc;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 12px;
    cursor: pointer;
    transition: transform .35s var(--mscert-ease), background .35s var(--mscert-ease);
}

.mscert-submit::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%) skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
    transition: transform .7s var(--mscert-ease);
}

.mscert-submit:hover {
    transform: translateY(-2px);
    background: #120905;
}

.mscert-submit:hover::before {
    transform: translateX(120%) skewX(-18deg);
}

.mscert-small {
    text-align: center;
    font-size: 12px;
    color: var(--mscert-muted);
}

.mscert-notice {
    padding: 18px 22px;
    border: 1px solid rgba(199, 163, 107, .45);
    background: #fff8ed;
    color: #3a2212;
}

@media (max-width: 980px) {
    .mscert-page {
        padding: 80px 18px;
    }

    .mscert-shell {
        grid-template-columns: 1fr;
    }

    .mscert-preview {
        min-height: auto;
    }

    .mscert-preview__inner {
        min-height: 420px;
    }
}

@media (max-width: 640px) {
    .mscert-page {
        padding: 60px 14px;
    }

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

    .mscert-card {
        border-radius: 24px;
        padding: 26px 18px;
    }

    .mscert-preview {
        border-radius: 24px;
        padding: 14px;
    }

    .mscert-preview__inner {
        border-radius: 18px;
        padding: 34px 24px;
    }

    .mscert-preview__brand {
        font-size: 40px;
    }
}
/* ============================================================
   Premium WooCommerce Checkout for Certificate
============================================================ */

body.woocommerce-checkout {
    background: #f7efe3;
}

.woocommerce-checkout .woocommerce {
    max-width: 1240px;
    margin: 0 auto;
    padding: 70px 20px;
}

.mscert-checkout-notice {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin: 0 0 28px;
    padding: 22px 26px;
    border: 1px solid rgba(199, 163, 107, .42);
    border-radius: 26px;
    background:
        radial-gradient(circle at 15% 20%, rgba(231,207,153,.32), transparent 36%),
        rgba(255, 250, 242, .86);
    box-shadow: 0 24px 70px rgba(47, 27, 16, .08);
    color: #3a2212;
}

.mscert-checkout-notice__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(199, 163, 107, .58);
    color: #b68b4a;
    font-size: 20px;
}

.mscert-checkout-notice__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    line-height: 1.15;
    margin-bottom: 6px;
    color: #2f1b10;
}

.mscert-checkout-notice__text {
    font-size: 14px;
    line-height: 1.65;
    color: #6f5643;
}

.mscert-checkout-preview-wrap {
    margin: 0 0 28px;
    padding: 26px;
    border: 1px solid rgba(199, 163, 107, .36);
    border-radius: 30px;
    background: rgba(255, 250, 242, .76);
    box-shadow: 0 28px 80px rgba(47, 27, 16, .09);
}

.mscert-checkout-preview-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.mscert-checkout-preview-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: #c7a36b;
    margin-bottom: 6px;
}

.mscert-checkout-preview-head h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 400;
    color: #2f1b10;
}

.mscert-checkout-preview-note {
    font-size: 12px;
    color: #8b7463;
    text-align: right;
}

.mscert-checkout-preview {
    position: relative;
    padding: 16px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .42);
    border: 1px solid rgba(199, 163, 107, .3);
    overflow: hidden;
}

.mscert-checkout-preview + .mscert-checkout-preview {
    margin-top: 18px;
}

.mscert-checkout-preview__inner {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    padding: 38px 34px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at 18% 12%, rgba(231, 207, 153, .48), transparent 36%),
        linear-gradient(135deg, #fffaf1, #f3e6d1);
    border: 1px solid rgba(199, 163, 107, .48);
    color: #2f1b10;
}

.mscert-checkout-preview__inner::before {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(199, 163, 107, .38);
    border-radius: 18px;
    pointer-events: none;
}

.mscert-checkout-preview__decor {
    position: absolute;
    right: -100px;
    top: -120px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(199, 163, 107, .34);
    border-radius: 999px;
}

.mscert-checkout-preview__decor::after {
    content: "";
    position: absolute;
    inset: 34px;
    border: 1px solid rgba(199, 163, 107, .22);
    border-radius: inherit;
}

.mscert-checkout-preview__label,
.mscert-checkout-preview__brand,
.mscert-checkout-preview__subtitle,
.mscert-checkout-preview__amount,
.mscert-checkout-preview__recipient,
.mscert-checkout-preview__sender,
.mscert-checkout-preview__message,
.mscert-checkout-preview__number {
    position: relative;
    z-index: 2;
}

.mscert-checkout-preview__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .22em;
    color: #b98f50;
    margin-bottom: 14px;
}

.mscert-checkout-preview__brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 68px);
    line-height: .96;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.mscert-checkout-preview__subtitle {
    margin-top: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: #9e7842;
}

.mscert-checkout-preview__amount {
    margin-top: 24px;
    font-size: 34px;
    color: #b98f50;
}

.mscert-checkout-preview__recipient {
    margin-top: 12px;
    font-size: 17px;
    color: #4a2c19;
}

.mscert-checkout-preview__sender {
    margin-top: 8px;
    font-size: 14px;
    color: #7a5d45;
}

.mscert-checkout-preview__message {
    max-width: 460px;
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.65;
    color: #6f5643;
}

.mscert-checkout-preview__number {
    margin-top: 24px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: rgba(47, 27, 16, .48);
}

/* Dark design preview */
.mscert-checkout-preview--dark .mscert-checkout-preview__inner {
    background:
        radial-gradient(circle at 18% 12%, rgba(199,163,107,.22), transparent 36%),
        linear-gradient(135deg, #241209, #070302);
    color: #fff4dc;
}

.mscert-checkout-preview--dark .mscert-checkout-preview__recipient,
.mscert-checkout-preview--dark .mscert-checkout-preview__message,
.mscert-checkout-preview--dark .mscert-checkout-preview__sender {
    color: rgba(255, 244, 220, .76);
}

.mscert-checkout-preview--dark .mscert-checkout-preview__number {
    color: rgba(255, 244, 220, .46);
}

/* Classic design preview */
.mscert-checkout-preview--classic .mscert-checkout-preview__inner {
    background: #fff;
}

/* Checkout layout polish */
.woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 32px;
    align-items: start;
}

.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading {
    background: rgba(255, 250, 242, .76);
    border: 1px solid rgba(199, 163, 107, .34);
    border-radius: 28px;
    padding: 26px;
    box-shadow: 0 24px 70px rgba(47, 27, 16, .07);
}

.woocommerce-checkout #order_review_heading {
    margin: 0 0 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 400;
    color: #2f1b10;
}

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    color: #2f1b10;
}

.woocommerce-checkout .form-row label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .11em;
    color: #806754;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
    min-height: 50px;
    border: 1px solid rgba(199, 163, 107, .4);
    border-radius: 999px;
    padding: 0 17px;
    background: rgba(255,255,255,.62);
    color: #2f1b10;
    outline: none;
}

.woocommerce-checkout .form-row textarea {
    border-radius: 22px;
    padding: 15px 17px;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
    border-color: #c7a36b;
    box-shadow: 0 0 0 4px rgba(199, 163, 107, .14);
}

.mscert-checkout-delivery-type .woocommerce-input-wrapper {
    display: grid;
    gap: 10px;
}

.mscert-checkout-delivery-type label.radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(199, 163, 107, .38);
    border-radius: 18px;
    background: rgba(255,255,255,.45);
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    color: #4a2c19;
    cursor: pointer;
}

.woocommerce-checkout button.button,
.woocommerce-checkout #place_order {
    min-height: 56px;
    border-radius: 999px !important;
    background: #2f1b10 !important;
    color: #fff4dc !important;
    border: 1px solid #2f1b10 !important;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 12px;
    transition: all .35s cubic-bezier(.22,1,.36,1);
}

.woocommerce-checkout button.button:hover,
.woocommerce-checkout #place_order:hover {
    transform: translateY(-2px);
    background: #140905 !important;
}

@media (max-width: 980px) {
    .woocommerce-checkout form.checkout {
        grid-template-columns: 1fr;
    }

    .mscert-checkout-preview-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .mscert-checkout-preview-note {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .woocommerce-checkout .woocommerce {
        padding: 42px 14px;
    }

    .mscert-checkout-notice,
    .mscert-checkout-preview-wrap,
    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review,
    .woocommerce-checkout #order_review_heading {
        border-radius: 22px;
        padding: 18px;
    }

    .mscert-checkout-preview__inner {
        min-height: 300px;
        padding: 30px 22px;
    }

    .mscert-checkout-preview__brand {
        font-size: 40px;
    }
}
