/* Vlastný obal a triedy zabránia dedeniu rozmerov nákupných tlačidiel témy. */
.wda-adopt-action {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: stretch;
    grid-column: 1 / -1;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 12px 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: both;
    position: static !important;
    text-align: center !important;
}

/* Hlavné tlačidlo detailu nadväzuje na ľavý okraj názvu a ceny. */
.wda-adopt-action.wda-adopt-action--single {
    justify-content: flex-start !important;
    text-align: left !important;
}

.wda-adopt-action > button.wda-adopt-button,
button.wda-adopt-button {
    box-sizing: border-box !important;
    display: inline-flex !important;
    flex: 0 1 auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 44px !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    float: none !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    background: #aa3156 !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    text-indent: 0 !important;
    white-space: normal !important;
    word-break: normal !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color 150ms ease;
}

.wda-adopt-action > button.wda-adopt-button:hover,
button.wda-adopt-button:hover {
    background: #8e2445 !important;
    color: #fff !important;
}

button.wda-adopt-button::before,
button.wda-adopt-button::after {
    content: none !important;
    display: none !important;
}

button.wda-adopt-button > span {
    display: block !important;
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font: inherit !important;
    line-height: inherit !important;
    text-align: center !important;
    white-space: normal !important;
}

button.wda-adopt-button > svg {
    display: block !important;
    flex: 0 0 16px !important;
    width: 16px !important;
    min-width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    fill: currentColor !important;
}

html.wda-dialog-open {
    overflow: hidden;
}

#wda-dialog,
#wda-dialog * {
    box-sizing: border-box;
}

#wda-dialog {
    --wda-ink: #342c32;
    --wda-muted: #71646b;
    --wda-accent: #aa3156;
    --wda-border: #e9dfe3;
    --wda-default-height: 100vh;
    position: fixed;
    inset: auto;
    top: calc(var(--wda-viewport-top, 0px) + var(--wda-viewport-height, var(--wda-default-height)) / 2);
    left: 50%;
    width: min(620px, calc(100% - 32px));
    max-width: none;
    max-height: calc(var(--wda-viewport-height, var(--wda-default-height)) - 40px);
    margin: 0;
    padding: 0;
    overflow: hidden;
    transform: translate(-50%, -50%);
    border: 1px solid rgb(255 255 255 / 75%);
    border-radius: 24px;
    background: #fff;
    color: var(--wda-ink);
    box-shadow: 0 28px 90px rgb(44 24 35 / 28%), 0 3px 12px rgb(44 24 35 / 8%);
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    text-align: left;
    text-transform: none;
    color-scheme: light;
}

@supports (height: 100svh) {
    #wda-dialog {
        --wda-default-height: 100svh;
    }
}

@supports (height: 100dvh) {
    #wda-dialog {
        --wda-default-height: 100dvh;
    }
}

#wda-dialog[open] {
    display: flex;
    flex-direction: column;
}

#wda-dialog:not([open]),
#wda-dialog [hidden] {
    display: none !important;
}

#wda-dialog::backdrop {
    background: rgb(36 25 34 / 58%);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

#wda-dialog button,
#wda-dialog input,
#wda-dialog textarea {
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
}

#wda-dialog .wda-dialog__header {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 14px;
    margin: 0;
    padding: 24px 28px;
    border-bottom: 1px solid var(--wda-border);
    background: #fff;
}

#wda-dialog .wda-dialog__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border: 1px solid #f4dbe4;
    border-radius: 16px;
    background: #fff0f5;
    color: var(--wda-accent);
}

#wda-dialog .wda-dialog__icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

#wda-dialog .wda-dialog__heading,
#wda-dialog .wda-dialog__header > div:not(.wda-dialog__icon) {
    flex: 1 1 auto;
    min-width: 0;
}

#wda-dialog .wda-dialog__eyebrow {
    display: block;
    margin: 0 0 3px;
    color: var(--wda-accent);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#wda-dialog .wda-dialog__title {
    margin: 0;
    padding: 0;
    color: var(--wda-ink);
    font-family: inherit;
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

#wda-dialog [data-wda-close] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0 0 0 auto;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: #f6f2f4;
    color: #67545e;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    box-shadow: none;
    cursor: pointer;
}

#wda-dialog [data-wda-close]:hover:not(:disabled) {
    background: #f0e5ea;
    color: var(--wda-accent);
}

#wda-dialog [data-wda-close]:disabled {
    opacity: 0.45;
    cursor: wait;
}

#wda-dialog #wda-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    margin: 0;
    overflow: hidden;
}

#wda-dialog .wda-scroll-region {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    isolation: isolate;
}

#wda-dialog .wda-dialog__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 24px 28px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #d5bdc7 #fbf7f8;
    scroll-padding: 20px;
    -webkit-overflow-scrolling: touch;
    background: #fffcfd;
}

#wda-dialog .wda-scroll-fade {
    position: absolute;
    inset-inline: 0;
    z-index: 2;
    display: block;
    height: min(28px, 20%);
    opacity: 0;
    pointer-events: none !important;
    transition: opacity 150ms ease;
}

#wda-dialog .wda-scroll-fade--top {
    top: 0;
    background: linear-gradient(to bottom, #fffcfd, rgb(255 252 253 / 0));
}

#wda-dialog .wda-scroll-fade--bottom {
    bottom: 0;
    height: min(68px, 35%);
    background: linear-gradient(to bottom, rgb(255 252 253 / 0), #fffcfd 85%);
}

#wda-dialog .wda-can-scroll-up .wda-scroll-fade--top,
#wda-dialog .wda-can-scroll-down .wda-scroll-fade--bottom {
    opacity: 1;
}

#wda-dialog .wda-scroll-more {
    position: absolute;
    z-index: 3;
    bottom: 6px;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: max-content;
    max-width: calc(100% - 24px);
    min-height: 44px;
    margin: 0;
    padding: 8px 13px;
    transform: translateX(-50%);
    border: 1px solid #d8bbc8;
    border-radius: 999px;
    background: #fff;
    color: var(--wda-accent);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 3px 12px rgb(65 31 47 / 12%);
    cursor: pointer;
    touch-action: manipulation;
}

#wda-dialog .wda-scroll-more:hover {
    background: #fff3f7;
}

#wda-dialog .wda-scroll-more__arrow {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    margin-top: -3px;
    transform: rotate(45deg);
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
}

#wda-dialog .wda-dialog__intro {
    margin: 0 0 20px;
    color: var(--wda-muted);
    font-size: 14px;
    line-height: 1.65;
}

#wda-dialog .wda-product-card {
    display: grid;
    gap: 3px;
    margin: 0 0 24px;
    padding: 15px 18px;
    border: 1px solid #f1dce5;
    border-left: 3px solid #bc4b71;
    border-radius: 12px;
    background: #fff3f7;
    overflow-wrap: anywhere;
}

#wda-dialog .wda-product-card__label {
    color: #835667;
    font-size: 12px;
    font-weight: 600;
}

#wda-dialog [data-wda-product-name] {
    color: #6f2940;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
}

#wda-dialog .wda-fields-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px 16px;
    margin: 0 0 20px;
}

#wda-dialog .wda-field {
    display: block;
    min-width: 0;
    margin: 0;
}

#wda-dialog .wda-field--wide {
    grid-column: 1 / -1;
}

#wda-dialog .wda-field > label {
    display: block;
    margin: 0 0 7px;
    color: #493b43;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

#wda-dialog .wda-field__hint {
    display: block;
    margin: 6px 0 0;
    color: var(--wda-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

#wda-dialog input:not([type="checkbox"]):not([type="hidden"]),
#wda-dialog textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 11px 13px;
    border: 1px solid #d7cbd1;
    border-radius: 10px;
    background: #fff;
    color: #342c32;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgb(55 32 43 / 3%);
    transition: border-color 150ms ease, box-shadow 150ms ease;
    -webkit-appearance: none;
    appearance: none;
}

#wda-dialog input::placeholder,
#wda-dialog textarea::placeholder {
    color: #93858d;
    opacity: 1;
}

#wda-dialog input:not([type="checkbox"]):hover,
#wda-dialog textarea:hover {
    border-color: #b7a3ad;
}

#wda-dialog input:not([type="checkbox"]):focus,
#wda-dialog textarea:focus {
    border-color: var(--wda-accent);
    box-shadow: 0 0 0 3px rgb(170 49 86 / 10%);
}

#wda-dialog input:user-invalid,
#wda-dialog textarea:user-invalid {
    border-color: #b42338;
}

#wda-dialog textarea {
    min-height: 104px;
    resize: vertical;
}

#wda-dialog :focus-visible,
.wda-adopt-button:focus-visible {
    outline: 3px solid #964767;
    outline-offset: 3px;
}

#wda-dialog .wda-dialog__title:focus,
#wda-dialog .wda-success__title:focus,
#wda-dialog [data-wda-verification]:focus {
    outline: none;
}

#wda-dialog [data-wda-verification]:focus-visible {
    outline: 3px solid #964767;
    outline-offset: 3px;
}

#wda-dialog .wda-privacy {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-height: 44px;
    margin: 20px 0;
    padding: 3px 0;
    color: #67545e;
    font-size: 13px;
    line-height: 1.65;
    cursor: pointer;
}

#wda-dialog .wda-privacy input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    border: 1px solid #cbb4c0;
    border-radius: 4px;
    accent-color: var(--wda-accent);
    cursor: pointer;
    -webkit-appearance: checkbox;
    appearance: auto;
}

#wda-dialog .wda-privacy a {
    color: #8f2e4d;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#wda-dialog .wda-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

#wda-dialog .wda-verification {
    margin: 20px 0 0;
    padding: 17px 18px;
    border: 1px solid var(--wda-border);
    border-radius: 12px;
    background: #fff;
}

#wda-dialog .wda-verification h3 {
    margin: 0 0 5px;
    color: #493b43;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: normal;
}

#wda-dialog .wda-verification p {
    margin: 0;
    color: var(--wda-muted);
    font-size: 12px;
    line-height: 1.6;
}

#wda-dialog #wda-turnstile {
    min-height: 65px;
    margin: 14px 0 0;
}

#wda-dialog .wda-dialog__footer {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
    padding: 17px 28px 22px;
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--wda-border);
    background: #fff;
    box-shadow: 0 -8px 24px rgb(65 31 47 / 4%);
}

#wda-dialog [data-wda-status] {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #eef7f0;
    color: #28613c;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

#wda-dialog [data-wda-status]:empty {
    display: none;
}

#wda-dialog [data-wda-status].wda-status--error {
    border: 1px solid #f0d2d9;
    background: #fff2f3;
    color: #a12c42;
}

#wda-dialog [data-wda-hint] {
    margin: 0 0 10px;
    color: var(--wda-muted);
    font-size: 12px;
    line-height: 1.5;
}

#wda-dialog [data-wda-scroll] {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    width: auto;
    min-height: 44px;
    margin: -5px 0 5px;
    padding: 6px 2px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--wda-accent);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: none;
    cursor: pointer;
}

#wda-dialog [data-wda-scroll]::after {
    content: '';
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin: -4px 2px 0;
    transform: rotate(45deg);
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
}

#wda-dialog [data-wda-scroll]:hover {
    color: #7e2241;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#wda-dialog .wda-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

#wda-dialog [data-wda-submit],
#wda-dialog [data-wda-retry] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: auto;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 150ms ease, box-shadow 150ms ease;
}

#wda-dialog [data-wda-submit] {
    flex: 1 1 210px;
    background: var(--wda-accent);
    color: #fff;
}

#wda-dialog [data-wda-submit]:hover:not(:disabled) {
    background: #8e2445;
    box-shadow: 0 4px 12px rgb(142 36 69 / 15%);
}

#wda-dialog [data-wda-submit]:disabled {
    background: #ead7df;
    color: #795363;
    cursor: not-allowed;
    opacity: 1;
}

#wda-dialog.wda-is-sending [data-wda-submit]::before {
    content: '';
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: wda-spin 800ms linear infinite;
}

#wda-dialog [data-wda-retry] {
    flex: 1 1 160px;
    border-color: #d8bbc8;
    background: #fff;
    color: #8f2e4d;
}

#wda-dialog [data-wda-retry]:hover:not(:disabled) {
    background: #fff3f7;
}

#wda-dialog [data-wda-retry]:disabled {
    opacity: 0.55;
    cursor: wait;
}

#wda-dialog .wda-success {
    padding: 22px 8px 30px;
    text-align: center;
}

#wda-dialog .wda-success__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    border: 1px solid #cfe6d6;
    border-radius: 50%;
    background: #edf8f0;
    color: #387849;
    font-size: 30px;
    font-weight: 500;
}

#wda-dialog .wda-success__title {
    margin: 0 0 12px;
    color: var(--wda-ink);
    font-family: inherit;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

#wda-dialog .wda-success__dog {
    display: inline-block;
    max-width: 100%;
    margin: 0 0 14px;
    padding: 6px 15px;
    border-radius: 99px;
    background: #fff0f5;
    color: #8f2e4d;
    font-size: 16px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

#wda-dialog .wda-success__text {
    max-width: 390px;
    margin: 0 auto;
    color: var(--wda-muted);
    font-size: 14px;
    line-height: 1.7;
}

#wda-dialog.wda-is-complete .wda-dialog__body > :not(.wda-success) {
    display: none !important;
}

#wda-dialog.wda-is-complete [data-wda-scroll] {
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 18px;
    border-radius: 11px;
    background: var(--wda-accent);
    color: #fff;
    font-size: 15px;
    text-decoration: none;
}

#wda-dialog.wda-is-complete [data-wda-scroll]::after {
    display: none;
}

@keyframes wda-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 520px) {
    #wda-dialog {
        width: calc(100% - 20px);
        max-height: calc(var(--wda-viewport-height, var(--wda-default-height)) - 20px);
        border-radius: 19px;
    }

    #wda-dialog .wda-dialog__header {
        gap: 10px;
        padding: 18px;
    }

    #wda-dialog .wda-dialog__icon {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    #wda-dialog .wda-dialog__title {
        font-size: 23px;
    }

    #wda-dialog .wda-dialog__eyebrow {
        font-size: 10px;
        letter-spacing: 0.09em;
    }

    #wda-dialog .wda-dialog__body {
        padding: 20px 18px;
        scrollbar-gutter: auto;
    }

    #wda-dialog .wda-fields-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    #wda-dialog .wda-dialog__footer {
        padding: 14px 18px 17px;
        padding-bottom: calc(17px + env(safe-area-inset-bottom, 0px));
    }

    #wda-dialog .wda-verification {
        padding: 15px 12px;
    }

    #wda-dialog .wda-success {
        padding-top: 16px;
        padding-bottom: 20px;
    }
}

@media (max-height: 480px) {
    #wda-dialog .wda-dialog__header {
        padding-top: 11px;
        padding-bottom: 11px;
    }

    #wda-dialog .wda-dialog__eyebrow {
        display: none;
    }

    #wda-dialog .wda-dialog__title {
        font-size: 22px;
    }

    #wda-dialog .wda-dialog__footer {
        padding-top: 10px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }

    #wda-dialog [data-wda-hint] {
        margin-bottom: 6px;
    }

    #wda-dialog [data-wda-status]:not(:empty) + [data-wda-hint] {
        display: none;
    }
}

#wda-dialog.wda-viewport-compact .wda-dialog__header {
    padding-top: 11px;
    padding-bottom: 11px;
}

#wda-dialog.wda-viewport-compact .wda-dialog__eyebrow {
    display: none;
}

#wda-dialog.wda-viewport-compact .wda-dialog__title {
    font-size: 22px;
}

#wda-dialog.wda-viewport-compact .wda-dialog__footer {
    padding-top: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}

#wda-dialog.wda-viewport-compact [data-wda-hint] {
    margin-bottom: 6px;
}

#wda-dialog.wda-viewport-compact [data-wda-status]:not(:empty) + [data-wda-hint] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .wda-adopt-button,
    #wda-dialog * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
