.map-club-popup .modal-inner-wrap {
    width: 90vw;
    max-width: 90vw;
}

@media (min-width: 768px) {
    .map-club-popup .modal-inner-wrap {
        width: 50vw;
        max-width: 50vw;
    }
}

.mapclub-signin-modal .modal-content {
    padding-bottom: 3rem;
}

.mapclub-signin-modal form {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.mapclub-linked-account {
    background-color: #f3f7ff; /* Custom background color */
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.linked-account-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.linked-account-image img {
    max-width: 100px;
    border-radius: 5px;
}

.linked-account-content h2 {
    margin: 0 0 10px;
}

.linked-account-content p {
    margin: 0 0 15px;
}

.linked-account-content .action.primary {
    background-color: #007bff;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
}

.mapclub-signup-container {
    max-width: 400px;
    margin: 0 auto;
}

.mapclub-signup-container .form-step {
    margin-bottom: 20px;
}

.mapclub-signup-container .form-step label,
.mapclub-signup-container .form-step input,
.mapclub-signup-container .form-step select,
.mapclub-signup-container .form-step button,
.mapclub-signup-container .form-step .mage-error {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

.mapclub-signup-container .form-step label.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 5px; /* space between checkbox and text */
    width: auto; /* don't force full width */
    margin-bottom: 10px;
}

.mapclub-signup-container .form-step input[type="checkbox"] {
    width: auto; /* shrink to natural size */
    display: inline-block; /* stay inline with label text */
    margin-right: 5px; /* small space before text */
}

#step-email .code-row {
    display: flex;
    gap: 10px;
}

#step-email .code-row input {
    flex: 1;
}

#step-email .code-row button {
    flex: 0 0;
}

#email-timer {
    font-size: 0.9em;
    margin-top: 5px;
}

.note {
    font-size: 1.2rem;
    color: #666;
    margin-top: 5px;
    display: block;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 35px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

.toggle-password:hover {
    color: #333;
}

.password-wrapper input[type="text"] + .toggle-password:before {
    content: "";
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    display: block;
    background-position: center;
}

.password-wrapper input[type="password"] + .toggle-password:before {
    content: "";
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path d="M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    display: block;
    background-position: center;
}

.mapclub-signup-container {
    max-width: 400px;
    margin: 0 auto;
}

.mapclub-signup-container .form-step {
    margin-bottom: 20px;
}

.mapclub-signup-container .form-step label,
.mapclub-signup-container .form-step input,
.mapclub-signup-container .form-step select,
.mapclub-signup-container .form-step button,
.mapclub-signup-container .form-step .mage-error {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

.mapclub-signup-container .form-step label.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 5px; /* space between checkbox and text */
    width: auto; /* don't force full width */
    margin-bottom: 10px;
}

.mapclub-signup-container .form-step input[type="checkbox"] {
    width: auto; /* shrink to natural size */
    display: inline-block; /* stay inline with label text */
    margin-right: 5px; /* small space before text */
}

#step-email .code-row {
    display: flex;
    gap: 10px;
}

#step-email .code-row input {
    flex: 1;
}

#step-email .code-row button {
    flex: 0 0;
}

#email-timer {
    font-size: 0.9em;
    margin-top: 5px;
}

.note {
    font-size: 1.2rem;
    color: #666;
    margin-top: 5px;
    display: block;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 35px;
}

#maincontent > div.columns > div > div.login-container > div.block.block-customer-login > div.block-title {
    border-bottom: none;
}

#maincontent > div.columns > div > div.login-container > div:nth-child(1) {
    margin-bottom: 0px;
    border-bottom: 1px solid #e8e8e8;
}

#login-form > fieldset > div.field.email.required {
    margin-top: 10px;
}

.mapclub-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1px 260px; /* left flexible, middle line, right fixed */
    gap: 20px;
    align-items: start;
    padding: 8px 0 0 0;
}

/* LEFT column tweaks */
.mapclub-form-column .phone-input-wrapper {
    display: flex;
    align-items: center;
}

.phone-prefix {
    padding: 0.36em .5em;
    background: #f4f4f4;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.mapclub-form-column input[type="tel"] {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 0 4px 4px 0;
    padding: 8px;
}

/* MIDDLE separator (1px column) */
.mapclub-separator {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    justify-self: center;
}

/* RIGHT column */
.mapclub-google-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 12px;
}

.mapclub-google-column .google-title {
    margin-bottom: 12px;
    color: #333;
    font-weight: 500;
}

/* Responsive: stack on small screens, hide separator */
@media (max-width: 680px) {
    .mapclub-modal-grid {
        grid-template-columns: 1fr; /* single column */
    }

    .mapclub-separator {
        display: none;
    }

    .mapclub-google-column {
        margin-top: 14px;
        padding-left: 0;
    }
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 35px;
}

.line-with-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: #666; /* optional */
    margin: 20px 0;
}

.line-with-text::before,
.line-with-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ccc;
}

.line-with-text:not(:empty)::before {
    margin-right: 10px;
}

.line-with-text:not(:empty)::after {
    margin-left: 10px;
}


.line-with-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: #666; /* optional */
    margin: 20px 0;
}

.line-with-text::before,
.line-with-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ccc;
}

.line-with-text:not(:empty)::before {
    margin-right: 10px;
}

.line-with-text:not(:empty)::after {
    margin-left: 10px;
}


.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 35px;
}

#account-already-popup {
    text-align: center;
}

#account-already-popup p {
    margin-bottom: 1em;
}

#account-already-popup .action {
    margin: 0 0.5em;
}


#register-error-popup {
    text-align: center;
}

#register-error-popup p {
    margin-bottom: 1em;
}

#register-error-popup .action {
    margin: 0 0.5em;
}


.otp-verify-popup {
    text-align: center;
}

.otp-verify-popup input {
    width: 100px;
    text-align: center;
    font-size: 1.5em;
    margin: .5em auto;
}

.otp-verify-popup #otp-timer {
    margin-top: .5em;
}

.otp-verify-popup #resend-otp {
    display: block;
    margin-top: .5em;
    cursor: pointer;
    color: blue;
}

#account-not-popup {
    text-align: center;
}

#account-not-popup p {
    margin-bottom: 1em;
}

#account-not-popup .action {
    margin: 0 0.5em;
}

span.required {
    color: #e02b27; /* Magento's default error red */
    font-weight: 600;
    font-size: 1.1em;
}

/* Container for the logo */
.mapclub-order-summary-logo {
    text-align: center;
    margin: 10px 0;
}

/* Logo image */
.mapclub-order-summary-logo img {
    max-width: 100%;
    height: auto;
    display: block;
    float: none;
}

/* Content section inside checkout block */
.block-mapclub-checkout-section-content {
    text-align: left;
    clear: both;
    padding-top: 10px;
}

/* The customer name field */
.block-mapclub-checkout-section-content .mapclub-content-name {
    font-size: 1em;
    color: #555;
    display: block;
    float: none;
    width: 100%;
    margin-bottom: 8px;
}

/* The custom text field */
.block-mapclub-checkout-section-content .mapclub-content {
    display: block;
    color: #555;
    float: none;
    width: 100%;
    margin-bottom: 12px;
}

.mapclub-points-section {
    margin-top: 15px;
    padding: 10px;
    border-top: 1px solid #ddd;
}

.mapclub-points-details {
    margin-top: 10px;
}

.points-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.points-input input {
    width: 100px;
    padding: 5px;
}

.redeem-button {
    background-color: #c21807;
    color: #fff;
    padding: 6px 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

