/**
 * Promo Codes block / card-promo-code.
 * SEO-2329 / v1.6.0
 *
 * Visual system:
 * - proportions: approved owner reference;
 * - rhythm: bonus-card / Gambling Theme;
 * - CTA: standard buttons.css;
 * - desktop: 16% / 34% / 26% / 24%;
 * - tablet: compact 3-column + actions row;
 * - mobile: vertical stack.
 */

.promo-codes-block__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.promo-code-card {
    --pc-bg:               #1e1e2e;
    --pc-bg-hover:         #252538;
    --pc-border:           rgba(255, 255, 255, 0.08);
    --pc-border-hover:     rgba(255, 255, 255, 0.14);
    --pc-text:             #b0b0c8;
    --pc-title:            #ffffff;
    --pc-shadow:           0 2px 8px rgba(0, 0, 0, 0.15);
    --pc-shadow-hover:     0 6px 20px rgba(0, 0, 0, 0.25);
    --pc-radius:           12px;
    --pc-transition:       all 0.25s ease;

    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--pc-bg);
    border: 1px solid var(--pc-border);
    border-radius: var(--pc-radius);
    box-shadow: var(--pc-shadow);
    transition: var(--pc-transition);
}

.promo-code-card:hover {
    background: var(--pc-bg-hover);
    border-color: var(--pc-border-hover);
    box-shadow: var(--pc-shadow-hover);
}

/* Desktop: reference proportions 16 / 34 / 26 / 24. */
.promo-code-card__grid-row {
    display: grid;
/*    grid-template-columns: 16% 34% 26% 24%;*/
	grid-template-columns: 16% 34% 30% 20%;
    align-items: stretch;
    width: 100%;
/*    min-height: 128px;*/
	min-height: 80px;
}

.promo-code-card--no-image .promo-code-card__grid-row {
    grid-template-columns: 50% 26% 24%;
}

.promo-code-card__media,
.promo-code-card__body,
.promo-code-card__promo,
.promo-code-card__actions {
    min-width: 0;
    box-sizing: border-box;
}

/* 1. IMAGE — calm, fixed visual zone. */
.promo-code-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
/*    padding: 12px 16px;*/
	padding: 5px 5px;
    background: rgba(0, 0, 0, 0.10);
    border-right: 1px solid var(--pc-border);
}

.promo-code-card__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 104px;
    max-height: 104px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.promo-code-card__media:hover .promo-code-card__image {
    transform: scale(1.04);
    opacity: 0.94;
}

/* 2. CONTENT — main visual weight. */
.promo-code-card__body {
    display: flex;
    flex-direction: column;
	align-self: start;
/*    justify-content: center;*/
	justify-content: flex-start;    
/*    gap: 9px;*/
	gap: 4px;
	padding: 14px 18px;
}

.promo-code-card__title {
    margin: 0 !important;
/*    margin-bottom: var(--spacing-sm);*/
/*    color: var(--pc-title);*/
  	color: var(--pc-text) !important;
/*    font-family: var(--font-primary, inherit);*/
/*    font-size: 17px;*/
    font-size: 14px;
    font-weight: 700;
/*    line-height: 1.3;*/
    line-height: 1 !important;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.promo-code-card__advantages {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text-primary, #ffffff);
}

.promo-code-card__advantages li {
    position: relative;
    margin: 0;
    padding-left: 19px;
    font-size: 14px;
    line-height: 1.4;
}

.promo-code-card__advantages li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--info, #15b89c);
    font-weight: 800;
}

/* 3. PROMO — secondary utility column, centred as one unit. */
.promo-code-card__promo {
    display: flex;
    flex-direction: column;
	align-self: start;
/*    align-items: stretch;*/
/*    justify-content: center;*/
    justify-content: flex-start;
    gap: 8px;
    padding: 14px 16px;
}

.promo-code-card__promo-label {
    display: block;
    color: var(--pc-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.45px;
    text-align: center;
    text-transform: uppercase;
}

.promo-code-card__promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 0 14px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
/*    border: 1px solid var(--info, #15b89c);*/
	border: 1px solid #ff000069;
/*    border-radius: 5px;*/
    background: rgba(21, 184, 156, 0.06);
    color: var(--info, #15b89c);
    font-family: var(--font-primary, inherit);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.45px;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--pc-transition);
}

.promo-code-card__promo-btn:hover,
.promo-code-card__promo-btn:focus-visible {
    background: var(--info, #15b89c);
    border-color: var(--info, #15b89c);
    color: #ffffff;
    outline: none;
    transform: translateY(-1px);
}

.promo-code-card__promo-btn:active {
    transform: translateY(0);
}

.promo-code-card__promo-icon {
    font-size: 16px;
    line-height: 1;
    opacity: 0.75;
}

.promo-code-card__promo-copied {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.96);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.promo-code-card__promo-btn.is-copied .promo-code-card__promo-code,
.promo-code-card__promo-btn.is-copied .promo-code-card__promo-icon {
    visibility: hidden;
}

.promo-code-card__promo-btn.is-copied .promo-code-card__promo-copied {
    display: flex;
}

/* 4. CTA — isolated right column, equal button geometry. */
.promo-code-card__actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px 14px 8px;
}

.promo-code-card__actions-top,
.promo-code-card__actions-middle {
    width: 100%;
}

.promo-code-card__actions .gt-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

/* One CTA must stay vertically centred, not pinned to the top. */
.promo-code-card--single-action .promo-code-card__actions {
    justify-content: center;
}

/* Medium desktop / tablet landscape: preserve balance without crowding. */
@media (max-width: 1100px) {
    .promo-code-card__grid-row {
        grid-template-columns: 15% 35% 25% 25%;
    }

    .promo-code-card--no-image .promo-code-card__grid-row {
        grid-template-columns: 50% 25% 25%;
    }

    .promo-code-card__image {
        max-width: 94px;
        max-height: 94px;
    }

    .promo-code-card__body {
        padding-left: 16px;
        padding-right: 14px;
    }

    .promo-code-card__promo {
        padding-left: 12px;
        padding-right: 12px;
    }

    .promo-code-card__actions {
        padding-right: 12px;
    }
}

/* Tablet: image + content + promo on row 1, CTA becomes a balanced row below. */
@media (max-width: 900px) {
    .promo-code-card__grid-row,
    .promo-code-card--no-image .promo-code-card__grid-row {
        grid-template-columns: 140px minmax(0, 1fr) 190px;
        min-height: 0;
    }

    .promo-code-card--no-image .promo-code-card__body {
        grid-column: 1 / 3;
    }

    .promo-code-card--no-image .promo-code-card__promo {
        grid-column: 3;
    }

    .promo-code-card__actions {
        grid-column: 2 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 0 14px 14px;
    }

    .promo-code-card--no-image .promo-code-card__actions {
        grid-column: 1 / -1;
    }

    .promo-code-card__title {
        font-size: 16px;
    }
}

/* Mobile: vertical stack in the approved order. */
@media (max-width: 600px) {
    .promo-code-card__grid-row,
    .promo-code-card--no-image .promo-code-card__grid-row {
        grid-template-columns: 1fr;
    }

    .promo-code-card__media,
    .promo-code-card--no-image .promo-code-card__body,
    .promo-code-card--no-image .promo-code-card__promo,
    .promo-code-card__body,
    .promo-code-card__promo,
    .promo-code-card__actions,
    .promo-code-card--no-image .promo-code-card__actions {
        grid-column: 1;
    }

    .promo-code-card__media {
        border-right: 0;
        border-bottom: 1px solid var(--pc-border);
        padding: 14px 16px;
    }

    .promo-code-card__image {
        max-width: 110px;
        max-height: 110px;
    }

    .promo-code-card__body {
        padding: 16px 16px 10px;
    }

    .promo-code-card__promo {
        padding: 10px 16px;
    }

    .promo-code-card__promo-label {
/*        text-align: left;*/
    }

    .promo-code-card__actions,
    .promo-code-card--no-image .promo-code-card__actions {
        display: flex;
        padding: 10px 16px 16px;
    }

    .promo-code-card__actions .gt-button {
        width: 100% !important;
    }
}
