@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --static-bgcolor: #ffffff;
    --static-txtcolor: #242424;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--secondary-bgcolor);
    color: var(--primary-txtcolor);
}

.card {
    box-shadow: 0 4px 12px 4px rgba(0, 0, 0, 0.1);
    background-color: var(--primary-bgcolor);
    border-color: color-mix(in srgb, var(--menutxtcolor) 10%, transparent);
}

.card-body {
    overflow: hidden;
    color: var(--primary-txtcolor);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.design1 {
    position: relative;
    overflow: hidden;
}

.design1::before,
.design1::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--ctabgcolor), var(--brandcolor));
    opacity: 0.1;
}

.design1::before {
    top: 0;
    right: 0;
    border-radius: 0 12px 0 100%;
}

.design1::after {
    bottom: 0;
    left: 0;
    border-radius: 0 100% 0 12px;
}

.sticky-checkout-card {
    position: sticky;
    top: 3rem;
    border-radius: 12px;
    z-index: 2;
    overflow: visible;
}

.sticky-checkout-card>.card-header {
    position: relative;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: linear-gradient(to right, var(--ctabgcolor), var(--brandcolor));
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
    text-align: center;
    padding: 10px;
    border-bottom: none;
}

.sticky-checkout-card>.card-header .card-title {
    color: var(--ctatxtcolor);
}

.btn-gradient {
    background: linear-gradient(to right, var(--ctabgcolor), var(--brandcolor));
    color: var(--ctatxtcolor);
    border: none;
    transition: background 0.3s ease;
}

.btn-gradient:hover,
.btn-gradient:focus,
.btn-gradient:focus-visible {
    color: var(--ctatxtcolor);
}

.btn-gradient:disabled,
.btn-gradient.btn-disabled {
    background: color-mix(in srgb, var(--primary-txtcolor) 30%, transparent) !important;
    color: color-mix(in srgb, var(--primary-txtcolor) 50%, transparent) !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-gradient:disabled:hover,
.btn-gradient.btn-disabled:hover {
    background: color-mix(in srgb, var(--primary-txtcolor) 30%, transparent) !important;
    color: color-mix(in srgb, var(--primary-txtcolor) 50%, transparent) !important;
}

.form-label {
    margin-bottom: 0.25rem;
    margin-left: 0.25rem;
}

.form-control {
    color: var(--primary-txtcolor);
    font-size: 0.875rem;
    background-color: transparent;
}

/* Select elements need solid background for dropdown theming */
select.form-control {
    background-color: var(--primary-bgcolor) !important;
}

.form-control::placeholder {
    color: color-mix(in srgb, var(--primary-txtcolor) 50%, transparent);
}

.input-group:focus-within,
.form-control:focus,
.btn.coupon-btn:hover,
.btn.coupon-btn:focus,
.btn.coupon-btn:active {
    border-color: var(--brandcolor);
    box-shadow: none;
}

.form-control:focus {
    color: var(--primary-txtcolor);
    border-color: var(--brandcolor);
    background: transparent;
}

/* Make coupon button match input field height */
.btn.coupon-btn {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brandcolor);
    border-color: var(--brandcolor);
    color: var(--ctatxtcolor);
}

/* Base wrapper */
.input-group {
    border: 1px solid var(--bs-border-color);
    padding-left: 1px;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background-color: transparent;
}

/* Highlight entire group when ANY input is focused */
.input-group:focus-within {
    border-color: var(--brandcolor);
}

/* Remove borders from inner inputs */
.input-group>.form-control {
    border: 0;
    padding-left: 0;
    box-shadow: none;
    color: var(--primary-txtcolor);
}

/* Prevent Bootstrap from re-adding focus styles */
.input-group>.form-control:focus {
    outline: none;
    box-shadow: none;
}

/* Error state */
.input-group.error {
    border-color: #dc3545;
}

.input-group.error:focus-within {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* intl-tel-input compatibility */
.input-group .iti>input.form-control {
    border: 0;
    box-shadow: none;
}

.iti__country-list {
    color: var(--primary-txtcolor);
    background-color: var(--secondary-bgcolor) !important;
    border-color: color-mix(in srgb, var(--menutxtcolor) 10%, transparent) !important;
}

.form-check-input:focus,
.form-check-input:active {
    border-color: var(--brandcolor);
    outline: 0;
    box-shadow: none;
}

.form-check-input[type=checkbox] {
    background-color: var(--primary-bgcolor);
    border-color: color-mix(in srgb, var(--primary-txtcolor) 70%, transparent);
}

.form-check-input:checked {
    border-color: var(--brandcolor);
    background-color: var(--brandcolor);
}

.form-check-label {
    color: var(--primary-txtcolor);
}

.payment-method-option {
    border: none;
    border-radius: 0.75rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    padding: 0.75rem;
    min-height: 72px;
}

.payment-method-radio {
    -webkit-appearance: none;
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    border: 1px solid color-mix(in srgb, var(--primary-txtcolor) 70%, transparent);
    background-color: var(--static-bgcolor);
    display: grid;
    place-content: center;
    cursor: pointer;
    margin: 0 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.payment-method-radio::before {
    content: "";
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    background-color: var(--brandcolor);
}

.payment-method-radio:checked {
    border-color: var(--brandcolor);
    border-width: 2px;
}

.payment-method-radio:checked::before {
    transform: scale(1);
}

.payment-method-radio:hover {
    border-color: var(--brandcolor);
}

.gateway-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.gateway-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.text-purple-600 {
    color: var(--brandcolor);
}

.bg-gray-50 {
    background-color: color-mix(in srgb, var(--secondary-bgcolor) 50%, transparent);
}

.text-gray-500 {
    color: color-mix(in srgb, var(--primary-txtcolor) 50%, transparent);
}

.text-gray-800 {
    color: var(--primary-txtcolor);
}

.border-gray-300 {
    border-color: color-mix(in srgb, var(--menutxtcolor) 10%, transparent);
}

#gst-section {
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: none;
    min-height: 0 !important;
    will-change: height, opacity;
}

#gst-section .row {
    margin-left: 0;
    margin-right: 0;
}

#gst-section .row>.col-6 {
    padding-left: 6px;
    padding-right: 6px;
}

.post-content-formatted {
    line-height: 1.6;
    color: var(--primary-txtcolor);
}

.post-content-formatted p,
.post-content-formatted h1,
.post-content-formatted h2,
.post-content-formatted h3,
.post-content-formatted h4,
.post-content-formatted h5,
.post-content-formatted h6,
.post-content-formatted ul,
.post-content-formatted li {
    word-break: break-word;
    color: var(--primary-txtcolor);
}

.post-content-formatted strong,
.post-content-formatted b {
    font-weight: 600;
    color: var(--primary-txtcolor);
}

.post-content-formatted u {
    text-decoration: underline;
}

.post-content-formatted code {
    background: var(--primary-bgcolor);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--primary-txtcolor);
}

.post-content-formatted ul {
    padding-left: 20px;
}

.post-content-formatted ol {
    padding-left: 20px;
}

.post-content-formatted.collapsed {
    max-height: 400px;
    overflow: hidden;
    position: relative;
}

.post-content-formatted blockquote {
    padding: 0.6em 0.6em 0.002em 0.6em;
    border-left: 4px solid color-mix(in srgb, var(--menutxtcolor) 20%, transparent);
    border-radius: 6px;
    font-style: italic;
    background-color: var(--primary-bgcolor);
    color: var(--primary-txtcolor);
}

.post-content-formatted .post-mention {
    color: var(--ctabgcolor);
    text-decoration: none;
    font-weight: 500;
}

.post-content-formatted .post-mention:hover {
    color: var(--brandcolor);
}

.post-content-formatted img {
    max-width: 100%;
    border-radius: 8px;
    margin: 8px 0;
    display: block;
}

.post-content-formatted audio,
.post-content-formatted video {
    max-width: 100%;
    margin: 8px 0;
    display: block;
}

.post-content-formatted .post-inline-video-link,
.post-content-formatted .post-inline-audio-link,
.post-content-formatted .post-inline-document-link {
    display: inline-block;
    padding: 6px 10px;
    background: var(--primary-bgcolor);
    border-radius: 6px;
    text-decoration: none;
    color: var(--brandcolor);
    margin: 4px 0;
    font-size: 14px;
}

.post-content-formatted .post-inline-audio-link {
    color: var(--ctabgcolor);
}

.post-content-formatted .post-inline-document-link {
    color: color-mix(in srgb, var(--primary-txtcolor) 70%, transparent);
}

.post-content-formatted video {
    width: 100% !important;
    min-height: 240px;
    background: var(--primary-bgcolor);
    border-radius: 8px;
    display: block;
    margin: 8px 0;
}

.post-content-formatted audio {
    width: 100% !important;
    border-radius: 8px;
    display: block;
    margin: 8px 0;
}

.post-content-formatted iframe {
    width: 100%;
}

/* Email input with spinner */
.email-input-container {
    position: relative;
}

/* Password input with toggle */
.password-input-container {
    position: relative;
}

.password-input-container .form-control {
    padding-right: 40px;
}

.password-toggle-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-txtcolor);
    font-size: 14px;
}

.password-toggle-icon:hover {
    color: var(--primary-txtcolor);
}

.email-spinner {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary-bgcolor);
    border-top: 2px solid var(--ctabgcolor);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }

    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

.field-error {
    color: #dc3545;
    font-size: 0.700rem;
    margin-top: 0.25rem;
    margin-left: 0.25rem;
}

.field-info {
    color: #0d6efd;
    font-size: 0.700rem;
    margin-top: 0.25rem;
    margin-left: 0.25rem;
}

.form-control.error {
    border-color: #dc3545;
}

.form-control.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Dropdown options themification */
select.form-control option {
    background-color: var(--secondary-bgcolor) !important;
    color: var(--primary-txtcolor) !important;
}

select.form-control option:hover,
select.form-control option:focus {
    background-color: var(--menubgcolor) !important;
    color: var(--brandcolor) !important;
}

select.form-control option:checked {
    background-color: var(--menubgcolor) !important;
    color: var(--brandcolor) !important;
}

/* Social Login Section */

.social-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background-color: var(--secondary-bgcolor);
    border: 1px solid color-mix(in srgb, var(--primary-txtcolor) 20%, transparent);
    text-decoration: none;
}

.divider-with-text {
    display: flex;
    align-items: center;
    text-align: center;
}

.divider-with-text::before,
.divider-with-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid color-mix(in srgb, var(--primary-txtcolor) 20%, transparent);
}

.divider-with-text::before {
    margin-right: 0.75rem;
}

.divider-with-text::after {
    margin-left: 0.75rem;
}