/* =====================================================
   Custom registration modal for product ID 411633
   Namespace: .msz411633-*
   ===================================================== */

:root {
    --msz411633-primary: #5caf21;
    --msz411633-primary-hover: #4f9a1c;
    --msz411633-text: #222222;
    --msz411633-muted: #555555;
    --msz411633-bg: #ffffff;
    --msz411633-border: #e5e5e5;
    --msz411633-radius: 10px;
}

/* Hide the original WooCommerce / Elementor add-to-cart on this page
   before JS replaces it, to avoid any flash of the old button. */
body.msz411633-target form.cart:not([data-msz411633-replaced]),
body.msz411633-target .e-atc-qty-button-holder:not([data-msz411633-replaced]) {
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* ---------- Register button on product page ---------- */
.msz411633-register-wrap {
    margin: 15px 0 20px;
}

.msz411633-register-btn {
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 12px 28px;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--msz411633-primary);
    border: none;
    line-height: 1.4;
    transition: background-color 0.2s ease, transform 0.05s ease;
    margin: 0 auto;
    display: flex;
}

.msz411633-register-btn:hover,
.msz411633-register-btn:focus {
    background-color: var(--msz411633-primary-hover);
    color: #ffffff;
    outline: none;
}

.msz411633-register-btn:active {
    transform: translateY(1px);
}

/* ---------- Modal container ---------- */
.msz411633-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.msz411633-modal[aria-hidden="false"] {
    display: flex;
}

.msz411633-modal[hidden] {
    display: none;
}

.msz411633-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: msz411633-fade 0.2s ease-out;
}

/* ---------- Dialog (desktop) ---------- */
.msz411633-dialog {
    position: relative;
    width: min(560px, calc(100% - 32px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background-color: var(--msz411633-bg);
    color: var(--msz411633-text);
    border-radius: var(--msz411633-radius);
    padding: 28px 24px 24px;
    font-family: inherit;
    line-height: 1.8;
    animation: msz411633-pop 0.2s ease-out;
}

.msz411633-handle {
    display: none;
}

.msz411633-close {
    position: absolute;
    top: -10px;
    left: 0;
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 26px;
    line-height: 1;
    color: var(--msz411633-text);
    background: transparent;
    border: none;
    margin: 0;
}

.msz411633-close:hover,
.msz411633-close:focus {
    outline: none;
}

.msz411633-title {
    margin: 0 0 16px;
    padding: 0 32px;
    font-size: 18px;
    font-weight: 700;
    color: var(--msz411633-text);
    text-align: center;
}

/* ---------- Body ---------- */
.msz411633-body {
    color: var(--msz411633-text);
    font-size: 18px;
}

.msz411633-intro {
    margin: 0 0 5px;
    color: var(--msz411633-text);
    text-align: center;
}

.msz411633-link {
    color: var(--msz411633-primary);
    text-decoration: none;
    font-weight: 700;
}

.msz411633-link:hover,
.msz411633-link:focus {
    text-decoration: underline;
}

/* ---------- IBAN field ---------- */
.msz411633-field {
    margin: 14px 0 0;
}

.msz411633-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--msz411633-text);
}

.msz411633-iban-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.msz411633-iban {
    flex: 1 1 240px;
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    background-color: #f6f7f8;
    border: 1px solid var(--msz411633-border);
    border-radius: var(--msz411633-radius);
    font-family: "Courier New", Courier, monospace;
    font-size: 15px;
    color: var(--msz411633-text);
    direction: ltr;
    text-align: left;
    word-break: break-all;
    user-select: all;
}

.msz411633-copy-btn {
    flex: 0 0 auto;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--msz411633-primary);
    border: none;
    transition: background-color 0.2s ease;
    margin: 0 !important;
}

.msz411633-copy-btn:hover,
.msz411633-copy-btn:focus {
    background-color: var(--msz411633-primary-hover);
    outline: none;
}

.msz411633-copy-btn.is-copied {
    background-color: var(--msz411633-primary-hover);
}

.msz411633-copy-status {
    display: block;
    min-height: 20px;
    margin-top: 6px;
    font-size: 13px;
    color: var(--msz411633-primary);
    text-align: center;
}

/* Workshop re-opened: button inherits default green — no override needed. */

/* ---------- Meta list ---------- */
.msz411633-meta {
    list-style: none;
    margin: 0;
    padding: 14px 16px;
    background-color: #fafafa;
    border: 1px solid var(--msz411633-border);
    border-radius: var(--msz411633-radius);
}

.msz411633-meta li {
    padding: 4px 0;
    color: var(--msz411633-text);
    margin: 0;
    display: flex;
    align-items: center;
}

.msz411633-meta li svg {
    width: 35px;
    height: 35px;
    margin-left: 5px;
}

.msz411633-meta li+li {
    border-top: 1px dashed var(--msz411633-border);
}

.msz411633-meta-key {
    display: inline-block;
    font-weight: 700;
    color: var(--msz411633-text);
}

/* Prevent body scroll while modal is open */
body.msz411633-open {
    overflow: hidden;
}

/* ---------- Animations ---------- */
@keyframes msz411633-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes msz411633-pop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes msz411633-slide-up {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* ---------- Mobile: bottom sheet ---------- */
@media (max-width: 768px) {
    .msz411633-modal {
        align-items: flex-end;
        justify-content: stretch;
    }

    button.msz411633-register-btn {
        position: fixed;
        bottom: 10px;
        z-index: 9999;
        right: 0;
        left: 0;
        min-width: auto;
        width: 46%;
    }

    .msz411633-dialog {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        border-radius: var(--msz411633-radius) var(--msz411633-radius) 0 0;
        padding: 18px 18px 24px;
        animation: msz411633-slide-up 0.25s ease-out;
        touch-action: pan-y;
    }

    .msz411633-dialog.is-dragging {
        transition: none;
    }

    .msz411633-dialog.is-closing {
        transform: translateY(100%);
        transition: transform 0.2s ease-in;
    }

    .msz411633-handle {
        display: block;
        width: 42px;
        height: 4px;
        margin: 0 auto 12px;
        background-color: #d9d9d9;
        border-radius: 10px;
    }

    .msz411633-close {
        top: 6px;
        left: 8px;
        width: 32px;
        height: 32px;
        font-size: 24px;
    }

    .msz411633-title {
        font-size: 20px;
        padding: 0 28px;
        margin-top: 25px;
    }

    .msz411633-iban {
        flex: 1 1 100%;
        justify-content: center;
    }

    button.msz411633-copy-btn {
        font-size: 18px;
        max-width: 59%;
        padding: 2px;
        margin: 0 auto !important;
    }

    .msz411633-copy-btn {
        flex: 1 1 100%;
    }

    .msz411633-meta li {
        justify-content: center;
    }

}