.chvs-promo-form-grid,
.chvs-promo-upload-grid,
.chvs-promo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.chvs-promo-form-grid small {
    display: block;
    margin-top: 5px;
    color: #64767b;
}

.chvs-promo-upload {
    padding: 14px;
    border: 1px solid #dbe7e7;
    border-radius: 12px;
    background: #f8fbfb;
}

.chvs-promo-upload .preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    margin: 10px 0;
    overflow: hidden;
    border-radius: 9px;
    background: #eaf1f1;
    color: #64767b;
}

.chvs-promo-upload .preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chvs-promo-upload input[type="file"] {
    width: 100%;
}

.chvs-cancel-edit {
    margin-left: 12px;
    color: #0f766e;
    font-weight: 700;
}

.chvs-promo-group > h3 {
    display: flex;
    align-items: center;
    gap: 9px;
}

.chvs-promo-group > h3 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 99px;
    background: #e9f5f3;
    color: #0f766e;
    font-size: 13px;
}

.chvs-promo-preview-card {
    display: grid;
    grid-template-columns: minmax(130px, 38%) 1fr;
    min-height: 290px;
    overflow: hidden;
    border: 1px solid #d5e7e4;
    border-radius: 16px;
    background: #eff8ff;
    box-shadow: 0 10px 26px rgba(23, 49, 58, .1);
}

.chvs-promo-preview-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.chvs-promo-preview-item .chvs-promo-preview-card {
    width: 100%;
    flex: 1;
}

.chvs-promo-preview-card.is-inactive {
    filter: grayscale(1);
    opacity: .75;
}

.chvs-promo-card-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    background: #dfeaea;
    color: #64767b;
}

.chvs-promo-card-media > img:not(.chvs-promo-card-qr) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chvs-promo-card-qr {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 72px;
    height: 82px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
}

.chvs-promo-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px;
}

.chvs-promo-card-meta,
.chvs-promo-card-actions,
.chvs-promo-language-images {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.chvs-promo-card-meta {
    justify-content: space-between;
    color: #64767b;
    font-size: 12px;
}

.chvs-promo-card-meta .state {
    padding: 4px 8px;
    border-radius: 99px;
    background: #d8f5e6;
    color: #17653f;
    font-weight: 700;
}

.chvs-promo-card-meta .state.inactivo {
    background: #e5e7eb;
    color: #4b5563;
}

.chvs-promo-card-body h4 {
    margin: 12px 0 5px;
    font-size: 21px;
    line-height: 1.2;
}

.chvs-promo-card-body > p {
    flex: 1;
    margin: 5px 0;
    color: #52666c;
}

.chvs-promo-card-value {
    margin: 7px 0;
    color: #2563eb;
    font-size: 22px;
}

.chvs-promo-language-images {
    margin-top: auto;
    padding-top: 9px;
    border-top: 1px solid #d5e7e4;
    font-size: 11px;
    font-weight: 700;
}

.chvs-promo-language-images img {
    width: 48px;
    height: 38px;
    object-fit: cover;
    border-radius: 5px;
}

.chvs-promo-language-images em {
    color: #7b8b90;
    font-weight: 400;
}

.chvs-promo-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.chvs-promo-preview-item .chvs-promo-card-actions > .chvs-edit,
.chvs-promo-preview-item .chvs-promo-card-actions form.inline .chvs-promo-delete-link {
    display: flex !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    border: 1px solid #cfe0e0 !important;
    border-radius: 9px !important;
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(23, 49, 58, .08) !important;
    color: #0f766e !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-decoration: none !important;
}

.chvs-promo-preview-item .chvs-promo-card-actions form.inline {
    display: block !important;
    width: 100% !important;
}

.chvs-promo-preview-item .chvs-promo-card-actions > .chvs-edit:hover,
.chvs-promo-preview-item .chvs-promo-card-actions form.inline .chvs-promo-delete-link:hover {
    border-color: #0f766e !important;
    background: #e9f5f3 !important;
    color: #095e58 !important;
}

.chvs-promo-empty {
    grid-column: 1 / -1;
    padding: 20px;
    border: 1px dashed #b8cccc;
    border-radius: 12px;
    text-align: center;
}

@media (max-width: 680px) {
    .chvs-promo-preview-card {
        grid-template-columns: 1fr;
    }

    .chvs-promo-card-media {
        max-height: 240px;
    }
}

.chvs-promo-shared-fields {
    margin-bottom: 20px;
}

.chvs-promotions-manager section > form {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
}

.chvs-promo-bilingual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.chvs-promotions-manager .chvs-promo-language-form {
    min-width: 0;
    margin: 0;
    padding: 18px;
    border: 1px solid #cfe0e0;
    border-radius: 14px;
    background: #f8fbfb;
}

.chvs-promotions-manager .chvs-promo-language-form legend {
    color: #0f766e;
    font-size: 17px;
}

.chvs-language-files {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid #dbe7e7;
}

.chvs-language-files label {
    min-width: 0;
}

.chvs-language-files input[type="file"] {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin-top: 7px;
    padding: 7px;
    overflow: hidden;
    border: 1px solid #b8cccc;
    border-radius: 8px;
    background: #fff;
    color: transparent;
}

.chvs-language-files input[type="file"]::file-selector-button {
    margin-right: 0;
    padding: 7px 10px;
    border: 0;
    border-radius: 6px;
    background: #e9f5f3;
    color: #0f766e;
    font-weight: 700;
    cursor: pointer;
}

.chvs-language-files small {
    display: block;
    margin-top: 5px;
    color: #64767b;
    font-weight: 400;
}

.chvs-promo-card-actions form.inline .chvs-promo-delete-link {
    display: inline-block !important;
    box-sizing: content-box !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 10px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #0f766e !important;
    font: inherit !important;
    font-weight: 700 !important;
    line-height: inherit !important;
    text-decoration: none !important;
}

.chvs-preview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 680px;
}

.chvs-preview-heading h3,
.chvs-preview-heading p {
    margin: 0 0 6px;
}

.chvs-preview-language-switch {
    display: inline-flex;
    gap: 5px;
    padding: 4px;
    border-radius: 99px;
    background: #e9f5f3;
}

.chvs-promotions-manager .chvs-preview-language-switch button {
    min-width: 44px;
    padding: 7px 11px;
    border-radius: 99px;
    background: transparent;
    color: #0f766e;
}

.chvs-promotions-manager .chvs-preview-language-switch button.active {
    background: #0f766e;
    color: #fff;
}

@media (max-width: 900px) {
    .chvs-promo-bilingual-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .chvs-language-files {
        grid-template-columns: 1fr;
    }

    .chvs-preview-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

.chvs-promo-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chvs-promo-preview-card {
    grid-template-columns: 145px minmax(0, 1fr);
    min-height: 250px;
}

.chvs-promo-preview-card .chvs-promo-card-media {
    min-height: 200px;
    padding: 12px;
}

.chvs-promo-preview-card .chvs-promo-card-media > img:not(.chvs-promo-card-qr) {
    width: 100%;
    height: 100%;
    max-height: 210px;
    object-fit: contain;
}

.chvs-promo-preview-card .chvs-promo-card-qr {
    width: 55px;
    height: 65px;
}

.chvs-promo-card-actions form.inline {
    appearance: none !important;
    display: inline !important;
    box-sizing: content-box !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    filter: none !important;
    transform: none !important;
}

.chvs-promo-card-actions .chvs-edit,
.chvs-promo-card-actions form.inline .chvs-promo-delete {
    appearance: none !important;
    display: inline-block !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 10px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #0f766e !important;
    font: inherit !important;
    font-weight: 700 !important;
    line-height: inherit !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.chvs-promo-card-actions .chvs-edit:hover,
.chvs-promo-card-actions form.inline .chvs-promo-delete:hover {
    color: #095e58 !important;
    text-decoration: underline !important;
}

.chvs-public-preview {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #dbe7e7;
}

.chvs-public-preview > p {
    margin-top: -7px;
    color: #64767b;
}

.chvs-live-promo-card {
    position: relative;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 680px;
    height: 272px;
    padding: 20px;
    overflow: hidden;
    border-radius: 16px;
    background: #eff8ff;
    box-shadow: 0 10px 26px rgba(23, 49, 58, .14);
}

.chvs-live-promo-card.is-inactive {
    filter: grayscale(1);
    opacity: .72;
}

.chvs-live-promo-card .media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #dfeaea;
    color: #64767b;
}

.chvs-live-promo-card .media > img:not(.qr) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chvs-live-promo-card .media .qr {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 78px;
    height: 98px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
}

.chvs-live-promo-card .body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-top: 3px;
}

.chvs-live-promo-card h4 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}

.chvs-live-promo-card .body > p {
    flex: 1;
    margin: 12px 0 6px;
    overflow: hidden;
    color: #52666c;
    line-height: 1.5;
}

.chvs-live-promo-card .body > strong {
    color: #2563eb;
    font-size: 24px;
}

.chvs-live-promo-card .actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.chvs-live-promo-card .actions span {
    padding: 9px 14px;
    border-radius: 4px;
    background: #017144;
    color: #fff;
    font-weight: 700;
}

@media (max-width: 900px) {
    .chvs-promo-preview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .chvs-live-promo-card {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 420px;
    }

    .chvs-live-promo-card .media {
        min-height: 210px;
    }
}
