/**
 * E24 Post Transformer - Click to Reveal Phone Widget
 * CSS básico para asegurar correcta visualización de iconos
 *
 * @since 3.8.0
 */

/* Contenedor del icono */
.e24-ctrp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
}

/* Iconos de Font Awesome */
.e24-ctrp-icon i {
    display: inline-block;
    line-height: 1;
}

/* SVG desde biblioteca de Elementor */
.e24-ctrp-icon svg {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* Imágenes personalizadas (PNG, JPG, SVG subidos) */
.e24-ctrp-icon img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Botón base */
.e24-ctrp-reveal {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.3s ease;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
}

.e24-ctrp-reveal:hover {
    opacity: 0.8;
}

/* Labels */
.e24-ctrp-label {
    display: inline-block;
}

/* Teléfono */
.e24-ctrp-phone {
    display: inline-block;
}

/* Enlace del teléfono */
.e24-ctrp-phone-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.e24-ctrp-phone-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Wrapper principal */
.e24-ctrp-phone-wrapper {
    display: block;
    width: 100%;
}

/* Wrapper de botones cuando hay dos activos */
.e24-ctrp-buttons-wrapper {
    display: flex !important;
    gap: 10px;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

/* Layout horizontal (default) */
.e24-ctrp-layout-horizontal .e24-ctrp-buttons-wrapper {
    flex-direction: row !important;
    align-items: center !important;
}

/* Layout vertical */
.e24-ctrp-layout-vertical .e24-ctrp-buttons-wrapper {
    flex-direction: column !important;
    align-items: stretch !important;
}

/* Cuando hay WhatsApp, ajustar ancho de botones individuales */
.e24-ctrp-has-whatsapp.e24-ctrp-layout-horizontal .e24-ctrp-reveal {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.e24-ctrp-has-whatsapp.e24-ctrp-layout-vertical .e24-ctrp-reveal {
    width: 100% !important;
    flex: 0 0 auto !important;
}

/* Asegurar que los botones sean visibles */
.e24-ctrp-buttons-wrapper .e24-ctrp-reveal {
    display: flex !important;
}

/* Color default de WhatsApp */
.e24-ctrp-whatsapp {
    background-color: #25D366;
    color: #ffffff;
}

/* Botón copiar */
.e24-ctrp-copy {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 8px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.e24-ctrp-copy:hover {
    background: #e0e0e0;
    border-color: #999;
}

.e24-ctrp-copy.e24-ctrp-copied {
    background: #4caf50;
    color: white;
    border-color: #4caf50;
}
