:root {
    --main-color: #2fa148; /* Nastavení hlavní barvy */
}

#tntech-show-tariff-wrap {
    width: 100%;
    max-width: 1600px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#tariffs-s-r{
    display: flex;
    padding-top: 50px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
#address-input-wrap{
    display: inline-block;
    position: relative;
    min-width: 300px;
}

#search-tariff {
    padding-top: 20px;
}

#suggestions {
    position: absolute;
    border: 1px solid #ccc;
    background: white;
    z-index: 1;
    max-height: 200px;
    overflow-y: auto;
    width: 300px;
    display: none;
}
.suggestion-item {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #cecece;
}
.suggestion-item:hover {
    background-color: #f0f0f0;
}

#loading-tariff{
    position: absolute;
    margin-top: 11px;
    display: inline-block;
    width: auto;
    right: 12px;
    height: auto;
    top: 0px;
}

.loading-container {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-top: 16px;
}

#loading-tariff.hidden{
    display: none;
}

.loading-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid #989898;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.tarif-card .check-availability:hover {
    background-color: #259d38; /* Tmavší odstín při hoveru */
}



.tabs .tab-button {
    background-color: #f4f4f4; /* Světlá barva pro tlačítka tabů */
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 5px;
    margin-right: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.tabs .tab-button.active {
    background-color: var(--main-color); /* Hlavní barva pro aktivní tab */
    color: white; /* Text bílý pro aktivní tab */
}

.tab-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 0 5px 5px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0px;
}

.tarif-card {
    background: white;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 220px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Základní cena (proškrtnutá) */
.tarif-card del {
    color: #888; /* Proškrtnutá cena bude mít světlejší barvu */
}

.tarif-card h3 {
    color: #000000;
    margin: 10px 0px 12px 0px;
    font-size: 22px;
    font-weight: bold;
}

.tarif-text {
    min-height: 340px;
}
/* Zvýrazněná cena (Hlavní barva) */
.tarif-card .discount {
    color: var(--main-color); /* Používá hlavní barvu pro zvýhodněnou cenu */
    font-weight: bold;
}

.tarif-price .discount {
    font-size: 28px;
}

.check-availability {
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

.check-availability:hover {
    background: #218838;
}

#tariffs-s-r .check-availability {
    font-size: 14px;
    color:#fff;
}
.elementor-element.modal-overlay,
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
    z-index:10000;
    overflow-y: auto;
}


.modal-inner {
    background: #ffffff;
    padding: 0px;
    border-radius: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    width: 750px;
    max-width:90%;
    text-align: center;
}
.close-btn-modal {
    position: absolute;
    top: 10px;
    right: 22px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    color: #000;
}

.form-row {
    clear: both;
    width: 100%;
    margin-bottom: 15px;
    float: left;
}
.cleaner {
    width: 100%;
    clear: both;
}

.modal-inner input[type="submit"] {
    -webkit-appearance: none;
    box-shadow: none;
    background: #666666;
    color: #ffffff;
    padding: 0 15px;
    height: 50px;
    border-radius: 2px;
    border: 0;
    display: block;
    margin: auto;
}

.form-content-tariff {
    padding: 40px 30px 10px 30px;
}

.form-row .form-column {
    width: 50%;
    float: left;
    padding-left: 0;
    padding-right: 10px;
}

.form-content-tariff  h2 {
    font-size: 26px;
    padding-bottom: 10px;
}

.form-content-tariff label{
    text-align: left;
}

#tariffs-s-r  .tarif-card{
    width: 300px;
}

/* Skrytí neaktivních panelů */
.tab-panel {
    display: none; /* Neaktivní panely jsou skryté */
}

/* Zobrazení aktivního panelu */
#tntech-show-tariff-wrap .tab-panel.active {
    display: flex; /* Aktivní panel bude zobrazený jako flexbox */
}
/* Kontejner pro tarifní karty */
.tab-panel .tarif-card {
    background: white;
    padding: 20px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 220px; /* Šířka karty */
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    margin: 10px; /* Mezera mezi kartami */
    flex: 1 1 calc(15% - 20px); /* Každá karta zabere 33% šířky, s mezerou */
    max-width: 240px; /* Maximální šířka pro každý tarif */
}

/* Tlačítko pro ověření dostupnosti */
.contact-button,
.tarif-card .check-availability {
    background-color: var(--main-color); /* Hlavní barva pro tlačítko */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
.tarif-card p,
.tab-panel .tarif-card p{
    font-size: 15px;
    color: #393c3d;
}

.download .speed{
    font-size: 30px;
    font-weight: bold;
    color: #2fa148;
}

/* Kontejner pro vyhledávač tarifů */
.tarif-search-container {
    margin-top: 40px;
    text-align: center;
}

.tarif-search-container input[type="text"] {
    padding: 10px;
    width: 100%;
    max-width: 300px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.tarif-search-container button {
    padding: 10px 20px;
    background-color: var(--main-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.tarif-search-container button:hover {
    background-color: #259d38; /* Tmavší odstín při hoveru */
}

.tarif-search-container label {
    display: block;
    text-align: center;
    padding-bottom: 8px;
    font-weight: bold;
    max-width: 750px;
    margin: auto;
    font-size: 24px;
}

@media (max-width: 768px) {
    .tarif-search-container label {
        max-width: 90%;
        font-size: 22px;
    }

    .modal-inner {
        max-width: 600px;
        width: 100%;
    }

    .form-row .form-column{
        width: 100%;
        float: none;
    }

    .form-content-tariff input{
        width: 100%;
    }
}

.tarif-search-container span {
    font-size: 22px;
}

#availability-result {
    margin-top: 20px;
    font-size: 16px;
    color: #333;
}
@media (max-width: 1600px) {
    #tntech-show-tariff-wrap {
        max-width: 1000px;
    }
    .tab-panel .tarif-card{
        flex: 1 1 calc(33% - 20px);
    }
    .tab-panel.active{
        gap:40px
    }
}

@media (max-width: 768px) {
    .tab-panel .tarif-card {
        flex: 1 1 100%; /* Na malých obrazovkách budou tarify na celé šířce */
        max-width: 100%;
    }

    .tarif-text{
        min-height: auto;
    }

    .form-content-tariff  h2 {
        font-size: 24px;
        padding-bottom: 20px;
    }
}


