.bs24-terms-url {
    display: inline-flex;
    margin-top: 0.5rem;
    color: #e07c35;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1rem;
    text-decoration: none;
}

.bs24-terms-url:hover {
    color: #e07c35;
    text-decoration: underline;
}

.bs24-terms-url.--coupon-terms {
    align-items: center;
}

/**
 * Listing product coupon strip
 * Ported 1:1 from DE BEM structure.
 */
.bs24-discount-code-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #ffffff;
    color: #111827;
    font-size: 0.75rem;
    line-height: 1.25;
    cursor: default;
}

.bs24-discount-code-strip__content {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 0.5rem;
}

.bs24-discount-code-strip__icon {
    flex: 0 0 auto;
    color: #e07c35;
}

.bs24-discount-code-strip__text {
    text-align: left !important;
    display: inline;
    min-width: 0;
    font-size: 11px;
    font-weight: 300;
    line-height: 1.25;
}

.bs24-discount-code-strip__code {
    color: #111827;
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.bs24-discount-code-strip__terms {
    display: inline-flex;
    margin-top: 0.1875rem;
    color: #6b7280;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.bs24-discount-code-strip__terms:hover {
    color: #e07c35;
    text-decoration: underline;
}

.bs24-discount-code-strip__copy {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: rgba(249, 250, 251, 0.5);
    color: #9ca3af;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.bs24-discount-code-strip__copy:hover {
    border-color: #e07c35;
    background: #ffffff;
    color: #e07c35;
}

.bs24-discount-code-strip__copy-icon--check {
    display: none;
}

.bs24-discount-code-strip__copy.is-copied .bs24-discount-code-strip__copy-icon--copy,
.bs24-discount-code-strip.is-copied .bs24-discount-code-strip__copy-icon--copy {
    display: none;
}

.bs24-discount-code-strip__copy.is-copied .bs24-discount-code-strip__copy-icon--check,
.bs24-discount-code-strip.is-copied .bs24-discount-code-strip__copy-icon--check {
    display: inline-flex;
    color: #e07c35;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/**
 * Single product promotion box
 * Tailwind from DE migrated to plain CSS.
 *
 * DE Tailwind source:
 * mb-8 border border-solid border-gray-200 rounded-xl p-4 bg-white flex flex-col gap-3
 */
.bs24-discount-code-promotion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #ffffff;
    color: #111827;
}

.bs24-discount-code-promotion__row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.bs24-discount-code-promotion__content {
    flex: 1 1 auto;
    min-width: 0;
}

.bs24-discount-code-promotion__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: #111827;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25rem;
}

.bs24-discount-code-promotion__icon {
    color: #e07c35;
}

.bs24-discount-code-promotion__discount {
    color: #e07c35;
    font-weight: 700;
}

.bs24-discount-code-promotion__description {
    margin: 0.25rem 0 0;
    color: #6b7280;
    font-size: 0.75rem;
    line-height: 1rem;
}

.bs24-discount-code-promotion__copy {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    height: 2.5rem;
    padding: 0 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: rgba(249, 250, 251, 0.5);
    color: #111827;
    font-family: monospace;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25rem;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.bs24-discount-code-promotion__copy:hover {
    border-color: #e07c35;
    background: #ffffff;
}

.bs24-discount-code-promotion__copy-text {
    color: inherit;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.bs24-discount-code-promotion__copy-icon {
    color: #9ca3af;
    transition: color 0.2s ease;
}

.bs24-discount-code-promotion__copy:hover .bs24-discount-code-promotion__copy-icon {
    color: #e07c35;
}

.bs24-discount-code-promotion__copy.is-copied,
.bs24-discount-code-promotion__copy.is-copied .bs24-discount-code-promotion__copy-icon {
    border-color: #e07c35;
    color: #e07c35;
}

.bs24-discount-code-promotion__variant-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid rgba(224, 124, 53, 0.25);
    border-radius: 0.5rem;
    background: rgba(224, 124, 53, 0.08);
    color: #7c4a24;
    font-size: 0.75rem;
    line-height: 1rem;
}

.bs24-discount-code-promotion__variant-notice .material-icons-outlined {
    flex: 0 0 auto;
    color: #e07c35;
}

.bs24-discount-code-promotion__variant-notice strong {
    color: inherit;
    font-weight: 700;
}

.bs24-discount-code-promotion.is-selected-variant-not-eligible {
    border-color: rgba(201, 74, 58, 0.45);
}

.bs24-discount-code-promotion.is-selected-variant-not-eligible::after {
    content: "Wybrany wariant nie jest objęty tą promocją.";
    display: block;
    padding: 0.625rem 0.75rem;
    border: 1px solid rgba(201, 74, 58, 0.3);
    border-radius: 0.5rem;
    background: rgba(201, 74, 58, 0.08);
    color: #9f3428;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1rem;
}

@media (min-width: 640px) {
    .bs24-discount-code-promotion__row {
        flex-direction: row;
        align-items: center;
    }

    .bs24-discount-code-promotion__copy {
        width: auto;
    }
}
