.partak-coupon {
    --partak-coupon-bg: #fcf0d6;
    --partak-coupon-accent: #e30613;
    --partak-coupon-text: #111;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px;
    border: 1px dashed #d9d4c9;
    border-radius: 24px;
    background: var(--partak-coupon-bg);
    color: var(--partak-coupon-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.8;
}

.partak-coupon .partak-coupon__message {
    flex: 1;
    min-width: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    overflow-wrap: anywhere;
}

.partak-coupon__actions {
    display: flex;
    flex-shrink: 0;
    align-items: stretch;
    gap: 8px;
    max-width: 100%;
}

.partak-coupon__code,
.partak-coupon .partak-coupon__button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 106px;
    min-height: 36px;
    padding: 6px 16px;
    border: 1px dashed var(--partak-coupon-accent);
    border-radius: 12px;
    color: var(--partak-coupon-accent);
    font: inherit;
    text-align: center;
    overflow-wrap: anywhere;
}

.partak-coupon__code {
    max-width: 240px;
    user-select: all;
}

.partak-coupon .partak-coupon__button {
    border-style: solid;
    background: var(--partak-coupon-accent);
    color: #fff;
    box-shadow: none;
    text-transform: none;
    cursor: pointer;
}

.partak-coupon .partak-coupon__button:hover {
    filter: brightness(.92);
}

.partak-coupon .partak-coupon__button:focus-visible {
    outline: 2px solid var(--partak-coupon-text);
    outline-offset: 3px;
}

.partak-coupon .partak-coupon__button:disabled {
    opacity: .6;
    cursor: default;
}

.partak-coupon__status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.partak-coupon__status.is-error {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
    white-space: normal;
}

@media (max-width: 600px) {
    .partak-coupon {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
        border-radius: 20px;
        font-size: 13px;
    }

    .partak-coupon__actions {
        width: 100%;
    }

    .partak-coupon__code,
    .partak-coupon .partak-coupon__button {
        flex: 1;
        min-width: 0;
        min-height: 44px;
        max-width: none;
        padding-inline: 10px;
    }
}
