/* assets/css/front-end-style.css */

/* --- General Widget Styling --- */
.cep-widget {
    width: 100%;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #ffffff;
    font-family: sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cep-flag {
    width: 24px;
    height: auto;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 2px;
}

/* --- Currencies Table Styling --- */
.cep-table {
    width: 100%;
    border-collapse: collapse;
}

.cep-table th, .cep-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.cep-table th {
    background-color: #f7f7f7;
    font-weight: bold;
    color: #333;
}

/* --- Simulator Styling --- */
.cep-simulator h3 {
    border-bottom: 2px solid #850808;
    padding-bottom: 10px;
    margin-top: 0;
}

.cep-input-group {
    margin-bottom: 15px;
}

.cep-simulator label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.cep-simulator input[type="number"], .cep-simulator select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

/* Style for the hidden placeholder option */
.cep-simulator select option[disabled]:first-child {
    color: #999; 
}
.cep-simulator #cep_selected_flag_placeholder {
    display: inline-block;
    vertical-align: middle;
}
.cep-simulator #cep_selected_flag_result {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.cep-results {
    padding: 15px;
    background: #f5f7fa;
    border-radius: 5px;
    margin-top: 20px;
}

.cep-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #cce;
    padding: 5px 0;
}

.cep-result-row:last-child {
    border-bottom: none;
}

.cep-result-value {
    font-weight: bold;
    color: #850808;
    font-size: 1.2em;
}

/* --- Pricing Slider Styling (Animated Marquee) --- */

/* Keyframe for Marquee Animation: Scrolls the content from right to left */
@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); } 
}

.cep-slider-container {
    background-color: #850808; /* Dark background matching the image */
    padding: 15px 0; /* Reduced vertical padding slightly */
    border: none;
    border-radius: 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(255, 255, 255, 0.3); /* Top line */
    height: auto; /* Explicit height to contain the horizontal content */
    line-height: 60px; /* Center content vertically in the container */
}

.cep-marquee-wrapper {
    overflow: hidden;
    margin-top: 0; 
}

.cep-marquee-content {
    /* KEY FOR HORIZONTAL SLIDING OF ALL SLIDES */
    display: flex; 
    flex-wrap: nowrap; 
    animation: marquee 20s linear infinite; /* Adjust time (20s) for speed */
    width: fit-content; 
    height: 60px;
    line-height: 60px;
}

.cep-slide {
    /* KEY FOR HORIZONTAL ALIGNMENT WITHIN EACH SLIDE */
    display: flex; 
    flex-direction: row; /* Align children (flag and text) horizontally */
    align-items: center; /* Center content vertically within the slide */

    padding: 0 40px; 
    font-size: 1.1em;
    font-weight: 500;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.3); /* Re-adding separation line */
    border-radius: 0;
    
    height: 60px; /* Match container height */
    line-height: normal; /* Reset line-height from container */
    flex-shrink: 0; 
}

.cep-slide span {
    /* KEY: Removed display: block; to keep it next to the flag */
    margin-left: 10px; 
    font-weight: bold; 
    font-size: 1.0em;
    color: #fff; 
}

.cep-slide .cep-flag {
    width: 32px; 
    height: auto;
    margin: 0;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}