:root {
    --tw-primary: #0b2a8f;
    --tw-primary-2: #1d4ed8;
    --tw-surface: #ffffff;
    --tw-soft: #f5f8ff;
    --tw-line: #dfe7f5;
    --tw-text: #101a3a;
    --tw-muted: #667085;
    --tw-success: #16835d;
    --tw-danger: #d92d20;
    --tw-radius: 20px;
    --tw-shadow: 0 18px 45px rgba(13, 42, 143, .09);
}

.tw-legal-page,
.tw-payment-state-page {
    max-width: 1180px;
    margin-inline: auto;
}

.tw-legal-hero {
    padding: 30px 34px;
    margin-bottom: 20px;
    border-radius: var(--tw-radius);
    color: #fff;
    background: linear-gradient(135deg, #07195d 0%, #173db8 60%, #3268e8 100%);
    box-shadow: var(--tw-shadow);
}

.tw-legal-hero__eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .78;
}

.tw-legal-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
}

.tw-legal-card,
.tw-payment-state-card {
    border: 1px solid var(--tw-line) !important;
    border-radius: var(--tw-radius) !important;
    background: var(--tw-surface);
    box-shadow: var(--tw-shadow);
    overflow: hidden;
}

.tw-legal-card .card-body {
    padding: clamp(24px, 4vw, 48px);
    color: var(--tw-text);
    font-size: 15px;
    line-height: 1.85;
}

.tw-legal-card h1,
.tw-legal-card h2,
.tw-legal-card h3,
.tw-legal-card h4,
.tw-legal-card h5,
.tw-legal-card h6 {
    color: var(--tw-text);
    font-weight: 800;
    margin-top: 1.5em;
}

.tw-legal-card p,
.tw-legal-card li {
    color: #475467;
}

.tw-legal-card a {
    color: var(--tw-primary-2);
    font-weight: 700;
}

.tw-payment-state-card {
    max-width: 760px;
    margin: 70px auto;
    text-align: center;
}

.tw-payment-state-card .card-body {
    padding: 64px 36px !important;
}

.tw-payment-state-icon {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    margin: 0 auto 22px;
    border-radius: 24px;
    color: var(--tw-danger);
    background: #fff1f0;
    font-size: 38px;
    font-weight: 800;
}

.tw-payment-state-card h3 {
    color: var(--tw-text);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
}

.tw-payment-state-card p {
    color: var(--tw-muted);
}

.tw-payment-state-card .btn {
    min-height: 48px;
    border-radius: 12px;
    font-weight: 800;
}

body.tw-payment-gateway {
    min-height: 100vh;
    background: linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%);
    color: var(--tw-text);
}

body.tw-payment-gateway .container,
body.tw-payment-gateway .container__payment {
    max-width: 980px;
}

body.tw-payment-gateway .card,
body.tw-payment-gateway .payment-form .form-payment,
body.tw-payment-gateway .payment-form .products,
body.tw-payment-gateway .payment-form .payment-details {
    border-radius: 18px !important;
}

body.tw-payment-gateway .card,
body.tw-payment-gateway .form-payment {
    border: 1px solid var(--tw-line) !important;
    box-shadow: var(--tw-shadow) !important;
}

body.tw-payment-gateway input,
body.tw-payment-gateway select,
body.tw-payment-gateway .form-control {
    min-height: 48px;
    border: 1px solid #cdd8ec;
    border-radius: 12px !important;
    box-shadow: none !important;
}

body.tw-payment-gateway input:focus,
body.tw-payment-gateway select:focus,
body.tw-payment-gateway .form-control:focus {
    border-color: #2d5bdb;
    box-shadow: 0 0 0 4px rgba(45,91,219,.10) !important;
}

body.tw-payment-gateway .btn--primary,
body.tw-payment-gateway button[type="submit"] {
    min-height: 50px;
    border: 0 !important;
    border-radius: 12px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #0b2a8f, #1d4ed8) !important;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(29,78,216,.20) !important;
}

.tw-mobile-payment-shell {
    max-width: 1000px;
    margin: 42px auto;
}

.tw-mobile-payment-shell::before {
    content: "Choose a secure payment method";
    display: block;
    margin-bottom: 20px;
    color: var(--tw-text);
    font-size: 28px;
    font-weight: 800;
}

.tw-mobile-payment-shell .card {
    border: 1px solid var(--tw-line) !important;
    border-radius: 16px !important;
    background: #fff;
    box-shadow: 0 10px 26px rgba(13,42,143,.07);
    transition: transform .18s ease, box-shadow .18s ease;
}

.tw-mobile-payment-shell .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--tw-shadow);
}

.tw-mobile-payment-shell .card-body {
    height: 116px !important;
    display: grid;
    place-items: center;
}

.tw-mobile-payment-shell img {
    max-height: 54px;
    width: auto;
    object-fit: contain;
}

.tw-paytm-redirect {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(145deg, #07195d, #1743be);
}

.tw-paytm-redirect__card {
    width: min(520px, 100%);
    padding: 46px 34px;
    border-radius: 24px;
    background: #fff;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,.22);
}

.tw-paytm-redirect__spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    border: 4px solid #dbe5ff;
    border-top-color: #1d4ed8;
    border-radius: 50%;
    animation: twSpin .8s linear infinite;
}

@keyframes twSpin { to { transform: rotate(360deg); } }

@media (max-width: 767px) {
    .tw-legal-page,
    .tw-payment-state-page { padding-inline: 12px; }
    .tw-legal-hero { padding: 24px 20px; }
    .tw-legal-card .card-body { padding: 24px 20px; }
    .tw-payment-state-card { margin: 34px 12px; }
    .tw-payment-state-card .card-body { padding: 44px 20px !important; }
    .tw-mobile-payment-shell { margin: 24px auto; }
}
