/* MyTasbih Checkout — Base Styles */

/* Hide WC newsletter / save-payment checkboxes */
.wc-block-checkout__newsletter-signup,
.mc4wp-checkbox,
.wc-block-components-checkbox.wc-block-checkout__save-payment-method-checkbox,
.wc-block-checkout__payment-method-saved-tokens,
.mc4wp-checkout-optin { display: none !important; }

.wc-block-components-text-input label,
.wc-block-components-combobox label { background: transparent !important; padding: 0 !important; }

/* Page shell */
.checkout-body {
    margin: 0;
    padding: 0;
}

.co-page {
    min-height: calc(100vh - 120px);
    padding: 0 20px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.co-wrap {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Top bar */
.co-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0 24px;
    gap: 12px;
}

.co-topbar__center {
    text-align: center;
    flex: 1;
}

.co-topbar__spacer { width: 110px; }

.co-topbar__icon {
    display: block;
    margin: 0 auto 10px;
}

.co-back {
    color: #d4af37;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    width: 110px;
    display: inline-block;
    transition: color 0.2s;
}

.co-back:hover {
    color: #b8962e;
    text-decoration: underline;
}

.co-title {
    font-family: 'Amiri', serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
    line-height: 1.2;
}

.co-subtitle {
    font-size: 14px;
    color: #718096;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* Trust badges row */
.co-trust-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 30px;
    padding: 16px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.co-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
}

.co-trust-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.co-trust-item strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.3;
}

.co-trust-item span {
    display: block;
    font-size: 11px;
    color: #718096;
}

/* Two-column layout */
.co-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 28px;
    align-items: start;
}

/* When two-column layout is present, align to top */
.co-wrap:has(.co-layout) {
    justify-content: flex-start;
}

/* Unavailable message */
.co-unavailable {
    max-width: 560px;
    margin: 40px auto;
    padding: 24px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.12);
    text-align: center;
    font-size: 14px;
    color: #718096;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

/* Responsive */
@media (max-width: 720px) {
    .co-layout { grid-template-columns: 1fr; }
    .co-trust-row { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    /* Centre the whole header column on small screens. */
    .co-topbar { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
    .co-topbar__spacer { display: none; }
    .co-topbar__center { text-align: center; }
    .co-back { width: auto; }
    .co-title { font-size: 22px; }
}

@media (max-width: 480px) {
    .co-trust-row { grid-template-columns: 1fr; gap: 14px; justify-items: center; }
    .co-page { padding: 0 14px 40px; }
}

/* Dark mode */
.page-wrapper.dark .co-title { color: #f0e6c8; }
.page-wrapper.dark .co-subtitle { color: #a0aec0; }
.page-wrapper.dark .co-back { color: #d4af37; }
.page-wrapper.dark .co-trust-item strong { color: #e2e8f0; }
.page-wrapper.dark .co-trust-item span { color: #a0aec0; }
.page-wrapper.dark .co-trust-row { border-color: rgba(212, 175, 55, 0.12); }
.page-wrapper.dark .co-unavailable {
    background: rgba(26, 26, 46, 0.92);
    border-color: rgba(212, 175, 55, 0.18);
    color: #a0aec0;
}
