/**
 * File: calc_result_actions.css
 * Verze a aktuální datum: 18-11-26 v_1.02
 */

/* --- Hlavička (shared/calc_app_header.php): ikona počítadla vyplní systémový rámeček .th-counter-icon --- */
.th-counter-icon .th-counter-img {
    display: block;
    width: 100%;
    height: 100%;
}

/* --- Tlačítko Spočítat: řádek 7 mřížky (lícuje se spodkem plátna), pod ním řada Uložit | Sdílet --- */
.th-calc-btn-row {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
}

.th-calc-btn-row .th-calc-btn {
    margin-bottom: 0 !important;
}

.th-quick-pdf-link {
    margin-top: 15px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    color: #f9c343;
    text-decoration: underline;
}

/* Místo v mřížce stránky ve všech šířkách, kde je #th-calc-app mřížkou (od 768 px), stejně jako obal tlačítka u schodů a šuplíků */
#th-calc-app > .th-calc-btn-row {
    grid-column: 1 / 2;
    grid-row: 7;
    align-self: end;
}

/* --- Domov řady akcí (řadu přesune calc_drawings_download.js pod Spočítat) --- */
#pdf-btn-container.th-calc-actions {
    position: relative;
}

/* --- Uložit projekt (vzhled = schody: žlutý obrys s PRO, šedý bez PRO) --- */
.th-share-wrapper .th-save-project-btn {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-color: #f9c343;
    color: #f9c343;
}

.th-share-wrapper .th-save-project-btn.th-save-project-locked {
    border-color: #555;
    color: #a6a6a6;
    background: transparent;
}

.th-save-project-locked .th-pro-badge {
    margin-left: 0;
}

.th-save-project-ico {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex: 0 0 auto;
}

/* --- E-mailová brána PDF (okno na systémovém .th-modal-overlay / .th-modal-box) --- */
.th-gate .th-gate-close {
    border: 0;
    background: transparent;
}

.th-gate-desc {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
}

.th-gate-input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
    padding: 14px;
    border: 1px solid #555;
    border-radius: var(--th-radius-pill, 46px);
    background: #252525;
    color: #fff;
    font-size: 16px;
    outline: none;
}

.th-gate-type {
    gap: 10px;
    margin-bottom: 16px;
}

.th-gate-type-opt {
    flex: 1;
    margin: 0;
    cursor: pointer;
}

.th-gate-type-card {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 8px 12px;
}

.th-gate-type-ico {
    width: 22px;
    height: 22px;
    margin-right: 10px;
}

.th-gate-type-text {
    font-size: 13px;
    font-weight: normal;
}

.th-gate-info {
    margin-bottom: 12px;
    text-align: center;
    font-size: 12px;
    color: #b3b3b3;
}

.th-gate-error {
    margin: 10px 0;
    font-size: 13px;
    color: #ff5555;
}

.th-gate [hidden] {
    display: none !important;
}

.th-gate-submit {
    width: 100%;
    padding: 14px 20px;
    border: 0;
    border-radius: var(--th-radius-pill, 46px);
    background: #f9c343;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.th-gate-count {
    margin-top: 15px;
    font-size: 14px;
    font-weight: bold;
    color: #f9c343;
}

.th-gate-closebtn {
    margin-top: 20px;
    padding: 10px 20px;
    border: 1px solid #555;
    border-radius: var(--th-radius-pill, 46px);
    background: transparent;
    color: #ccc;
    cursor: pointer;
}

.th-gate-cover {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #f9c343;
    font-size: 18px;
}

@media (max-width: 640px) {
    .th-gate .th-modal-box {
        padding: 36px 18px 24px;
    }
}
