/* ОБЩИЙ КОНТЕЙНЕР */
.ig-vld-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-family: inherit;
    margin-bottom: 30px;
    align-items: flex-start;
}

.ig-vld-column {
    flex: 1;
    min-width: 300px;
}

/* КАРТОЧКИ */
.ig-vld-box-wrapper {
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
    border-radius: 4px;
    overflow: hidden;
    background: #f4f4f4;
}

.ig-vld-header {
    background: #1b2a41;
    color: #ffffff;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
}

.ig-vld-body {
    padding: 20px;
}

/* ПОЛЯ */
.ig-vld-section { margin-bottom: 15px; }

.ig-vld-label {
    background: #1b2a41;
    color: #fff;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 3px 3px 0 0;
    display: inline-block;
}

.ig-vld-input-wrapper input,
.ig-vld-input-wrapper select {
    width: 100%;
    height: 45px;
    padding: 0 10px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 0 3px 3px 3px;
    font-size: 15px;
    color: #333;
}

/* =========================================
   СТИЛИ ДЛЯ STANDARD (Инстаграм / Фейсбук)
   ========================================= */
.ig-vld-wrapper[data-type="standard"] .ig-preview-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px 10px;
    margin-bottom: 20px;
    text-align: center;
    overflow-x: auto;
    overflow-y: hidden;
    min-height: 100px;
    /* Flexbox для центровки контента */
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
}

.ig-vld-wrapper[data-type="standard"] .ig-sticker-visual {
    display: inline-flex; /* Иконка и текст в ряд! */
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    height: auto;
}

.ig-vld-wrapper[data-type="standard"] .sticker-icon {
    height: 50px !important; /* Фиксируем высоту иконки */
    width: auto !important;
    margin-right: 5px;
    display: block;
    max-width: none;
}

.ig-vld-wrapper[data-type="standard"] .preview-text {
    font-size: 50px;
    line-height: 1;
    color: #000;
    white-space: nowrap;
}


/* =========================================
   СТИЛИ ДЛЯ CALCULATOR (Длина текста)
   ========================================= */
.ig-vld-wrapper[data-type="calculator"] .ig-preview-container {
    min-height: 100px;
    display: block;
    text-align: center;
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.calc-preview-canvas {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

.ig-vld-btn {
    width: 100%;
    background: #28a745;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}
.ig-vld-btn:hover { background: #218838; }


/* ТАБЛИЦЫ И ТЕКСТЫ */
.ig-specs-table {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
}
.ig-spec-row {
    display: flex; justify-content: space-between; padding: 10px 15px; font-size: 14px; border-bottom: 1px solid #eee;
}
.ig-spec-row.highlight { background: #f0fdf4; }
.ig-spec-label { color: #666; font-weight: 600; }
.ig-spec-val { color: #333; font-weight: bold; }

.ig-notice, .ig-swipe-hint {
    font-size: 11px; color: #888; text-align: center; margin-top: 10px;
}
@media (max-width: 768px) {
    .ig-vld-column { width: 100%; min-width: 100%; }
    .ig-vld-wrapper[data-type="standard"] .ig-preview-container {
        align-items: flex-start; /* Свайп работает от левого края */
    }
}