/* Container holding the columns */
.qr-container {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: transparent;
}

/* Each column wrapper */
.qr-column {
    background: #ededed;
    border-radius: 16px;
    padding: 16px 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 72px;
    gap: 14px;
}

/* Main modules column styling */
.qr-main-modules-column {
    gap: 14px;
    background: #fff;
    min-width: 90px;
}

/* Main module column header icon (top-left) */
.qr-main-module-header {
    width: 48px;
    height: 48px;
    font-size: 28px;
    margin-bottom: 14px;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

/* Each row wrapper: uniform height and flex alignment */
.qr-main-modules-column .qr-module,
.qr-addon-column .qr-addon-dot {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    width: 100%;
    box-sizing: border-box;
}

/* Main module icons */
.qr-main-modules-column .qr-icon {
    width: 55px;
    height: 55px;
    font-size: 30px;
    border-radius: 16px;
    border: 2px solid #d7dde0;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    box-sizing: border-box;
    padding: 4px;
    background: #ededed;
}

/* Hide native checkbox */
.qr-main-modules-column input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Correct border on checked state */
.qr-main-modules-column input[type="checkbox"]:checked + .qr-icon {
    border-color: #ff6600;
    background-color: #fff7e6;
    padding: 2px; /* Remove excess padding to snug border */
}

/* Keyboard focus */
.qr-main-modules-column .qr-icon:focus {
    outline: 2px solid #ff6600;
    outline-offset: 2px;
}

/* Addon header icons */
.qr-addon-header {
    font-size: 26px;
    margin-bottom: 14px;
    user-select: none;
    text-align: center;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Addon dots */
.qr-addon-dot {
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hide native checkboxes */
.qr-addon-dot input[type="checkbox"] {
    display: none;
}

/* Dot styling */
.qr-addon-dot .dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #999;
    background: white;
    box-sizing: border-box;
    transition: border-color 0.3s, background-color 0.3s;
}

/* Checked dot */
.qr-addon-dot.available input[type="checkbox"]:checked + .dot {
    background-color: #ff6600;
    border-color: #ff6600;
}

/* Hover effect */
.qr-addon-dot.available:hover:not(.disabled) .dot {
    border-color: #ff6600;
}

/* Disabled dots */
.qr-addon-dot.disabled .dot,
.qr-addon-dot input[type="checkbox"]:disabled + .dot {
    border-color: #ddd;
    background-color: #f7f7f7;
    cursor: not-allowed;
}

/* Footer styles */
.qr-prices-footer {
    font-size: 0.85rem;
    color: #666;
    padding-top: 14px;
    border-top: 1px solid #ddd;
    margin-top: 22px;
    text-align: center;
}

.qr-module-prices {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-weight: 600;
}

/* Submit button */
.qr-submit-btn {
    background-color: #2e353b;
    color: white;
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    padding: 16px 0;
    margin-top: 14px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.25s ease;
    user-select: none;
}

.qr-submit-btn:hover {
    background-color: #3b454d;
}

.qr-message {
    display: none;
    position: relative;
    margin-top: 1rem;
    padding: 12px 40px 12px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: left;
}

.qr-message.qr-message--success {
    background-color: #00afa6;
    border: 1px solid #008f87;
    color: #ffffff !important;
}

.qr-message.qr-message--error {
    background-color: #2e1a1a;
    border: 1px solid #6b2e2e;
    color: #eb5757 !important;
}

.qr-message-close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    padding: 0;
}

.qr-message-close:hover {
    opacity: 1;
}

.qr-user-fields {
    display: flex;
    gap: 10px;
    margin-bottom: 0px;
    margin-top: 20px;
}

.qr-user-fields input {
    flex: 1;
    padding: 10px !important;
    border: 1px solid #3b454d !important;
    border-radius: 4px !important;
    font-size: 16px;
    box-sizing: border-box;
    background: #e6eaed !important;
}

/* Module label inside addon dot rows (hidden on desktop, shown on mobile) */
.qr-addon-module-label {
    display: none;
}

/* Responsive */
@media (max-width: 720px) {
    .qr-container {
        flex-direction: column;
        gap: 16px;
        padding: 10px;
    }

    .qr-column {
        width: 100%;
        min-width: unset;
        padding: 16px 10px;
    }

    .qr-main-modules-column .qr-icon {
        width: 70px;
        height: 70px;
        font-size: 36px;
        line-height: 70px;
    }

    .qr-main-modules-column .qr-module,
    .qr-addon-column .qr-addon-dot {
        height: auto;
    }

    .qr-main-modules-column .qr-module {
        height: 80px;
    }

    .qr-addon-header {
        position: sticky;
        top: 0;
        z-index: 10;
        background: #ededed;
        border-radius: 12px 12px 0 0;
        margin: -16px -10px 16px -10px;
        padding: 16px 10px 14px;
        width: calc(100% + 20px);
        height: auto;
        font-size: 22px;
        flex-direction: column;
        gap: 8px;
        box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    }

    .qr-addon-header .qr-addon-icon {
        width: 64px;
        height: 64px;
    }

    .qr-addon-header::after {
        content: attr(data-label);
        display: block;
        font-size: 0.85rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #444;
        text-align: center;
        line-height: 1.3;
    }

    .qr-addon-dot {
        width: auto;
        height: auto;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 10px 0 10px;
    }

    .qr-addon-module-label {
        display: block;
        font-size: 0.75rem;
        font-weight: 600;
        color: #555;
        text-align: center;
        line-height: 1.2;
        letter-spacing: 0.01em;
    }

    .qr-addon-dot .dot {
        width: 30px;
        height: 30px;
        border-width: 2px;
    }

    .qr-submit-btn {
        font-size: 1.1rem;
        padding: 14px 0;
    }
    .qr-user-fields {
        flex-direction: column;
        gap: 10px;
    }
}