/* ==========================================================================
   eSCom Cookie Banner Pro
   ========================================================================== */

/* Fő konténer és doboz méretezése */
#escom-cookie-wrapper * {
    box-sizing: border-box;
}

#escom-cookie-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 550px;
    max-width: calc(100% - 40px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    padding: 24px 20px 20px 20px;
}

.escom-hidden { 
    display: none !important; 
}

/* Fejléc elrendezése */
.escom-header {
    margin-bottom: 15px;
    width: 100%;
}

/* Felső sor: Logó balra, X jobbra */
.escom-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    width: 100%;
}

.escom-logo-wrap {
    display: flex;
    align-items: center;
}

.escom-logo {
    max-height: 38px;
    max-width: 180px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Bezáró X gomb */
.escom-close-x {
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.2s ease;
}

.escom-close-x svg line {
    transition: stroke 0.2s ease;
}

.escom-close-x:hover svg line {
    stroke: #000000 !important;
}

/* Alsó sor: Cím középre igazítva */
.escom-header-title-wrap {
    text-align: center;
    width: 100%;
}

.escom-header-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    display: block;
    margin: 0;
}

/* Body tartalom */
.escom-main-text { 
    font-size: 14px; 
    color: #444; 
    line-height: 1.5; 
    margin: 0 0 20px 0; 
}

/* Kategória sorok */
.escom-settings-hidden { 
    display: none; 
}

.escom-scroll-container { 
    max-height: 300px; 
    overflow-y: auto; 
    margin: 0 0 15px 0;
}

.escom-cat-item { 
    border-radius: 6px; 
    background: #f8f9fa;
    margin-bottom: 8px; 
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.escom-cat-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px 15px;
    cursor: pointer;
}

.cat-title { 
    font-weight: 500; 
    font-size: 15px; 
    color: #333; 
}

.escom-cat-right { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

/* Nyíl ikon SVG */
.chevron-icon {
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s;
}

.active .chevron-icon { 
    transform: rotate(180deg); 
}

.escom-cat-desc { 
    display: none; 
    padding: 10px 15px 15px; 
    font-size: 13px; 
    color: #666; 
    line-height: 1.4;
    background: #fff;
    border-top: 1px solid #eee;
}

/* Gombok és Footer */
.escom-footer { 
    display: flex; 
    gap: 8px; 
    padding: 10px 0;
    justify-content: space-between;
}

.btn { 
    flex: 1;
    width: 0;
    min-width: 0;
    padding: 12px 2px; 
    border: none; 
    border-radius: 6px; 
    cursor: pointer; 
    font-weight: bold; 
    font-size: 12px; 
    text-transform: uppercase;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.escom-links { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    margin-top: 10px;
}

.escom-links a { 
    font-size: 12px; 
    color: #666; 
    text-decoration: underline; 
    transition: color 0.2s ease; 
}

/* Kapcsoló (Switch) */
.switch { 
    position: relative; 
    width: 40px; 
    height: 22px; 
}

.slider { 
    position: absolute; 
    cursor: pointer; 
    top: 0; left: 0; right: 0; bottom: 0; 
    background-color: #ccc; 
    transition: .4s; 
    border-radius: 22px; 
}

.slider:before { 
    position: absolute; 
    content: ""; 
    height: 16px; 
    width: 16px; 
    left: 3px; 
    bottom: 3px; 
    background-color: white; 
    transition: .4s; 
    border-radius: 50%; 
}

input:checked + .slider { 
    background-color: #F8858A; 
}

input:checked + .slider:before { 
    transform: translateX(18px); 
}

.always-active { 
    color: #2ecc71; 
    font-size: 13px; 
    font-weight: 500; 
}

/* Visszanyitó fül Süti ikonnal */
#escom-manage-consent-tab {
    position: fixed;
    bottom: 0;
    right: 50px;
    width: 45px;
    height: 35px;
    background: #fff;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 999998;
    border: 1px solid #eee;
    border-bottom: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    gap: 8px;
    overflow: hidden;
}

.escom-cookie-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: #F8858A;
}

#escom-manage-consent-tab span {
    opacity: 0;
    max-width: 0;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    overflow: hidden;
}

#escom-manage-consent-tab:hover {
    width: auto;
    padding: 0 15px;
}

#escom-manage-consent-tab:hover span {
    opacity: 1;
    max-width: 200px;
    margin-left: 4px;
}

/* Mobil finomítások (Tiszta, eltolások nélküli elrendezés) */
@media (max-width: 600px) {
    #escom-cookie-wrapper {
        width: calc(100% - 20px);
        right: 10px;
        left: 10px;
        bottom: 10px;
        padding: 20px 15px 15px 15px;
    }

    .escom-logo {
        max-height: 32px;
        max-width: 150px;
    }

    .escom-header-title {
        font-size: 16px;
    }

    .btn {
        font-size: 11px;
        padding: 10px 2px;
    }
}