
/* LADUNYA CONTRACTION TIMER V1 */

.ct-floating {
    position: fixed;
    right: 16px;
    bottom: 82px;
    z-index: 9000;
    padding: 12px 16px;
    border: none;
    border-radius: 999px;
    background: #77966d;
    color: white;
    font-weight: 600;
    box-shadow: 0 5px 18px rgba(0,0,0,.16);
}

.ct-overlay[hidden] {
    display: none !important;
}

.ct-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(35, 31, 28, .52);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.ct-panel {
    box-sizing: border-box;
    width: 100%;
    max-width: 520px;
    max-height: 92dvh;
    overflow-y: auto;
    background: #fffaf6;
    border-radius: 24px 24px 0 0;
    padding: 22px 20px 30px;
    color: #514a43;
}

.ct-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.ct-header h2 {
    margin: 0;
    font-size: 23px;
}

.ct-header button {
    border: none;
    background: transparent;
    font-size: 24px;
    padding: 8px;
}

.ct-description,
.ct-medical {
    line-height: 1.6;
    font-size: 14px;
}

.ct-clock {
    text-align: center;
    font-size: 54px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: 24px 0;
}

.ct-primary {
    width: 100%;
    padding: 17px;
    border: none;
    border-radius: 14px;
    background: #77966d;
    color: white;
    font-size: 17px;
    font-weight: 700;
}

.ct-history-list {
    display: grid;
    gap: 10px;
}

.ct-history-item {
    display: grid;
    gap: 5px;
    background: white;
    border: 1px solid #eadfd5;
    border-radius: 13px;
    padding: 13px;
    font-size: 14px;
}

.ct-clear {
    margin: 18px 0;
    padding: 11px 14px;
    border: 1px solid #d8c9c1;
    border-radius: 12px;
    background: white;
    color: #514a43;
}

.ct-notice {
    margin-top: 18px;
    padding: 15px;
    border-radius: 14px;
    background: #f3efe9;
    font-size: 13px;
    line-height: 1.6;
}

.ct-notice p {
    margin-bottom: 0;
}

@media (min-width: 600px) {
    .ct-overlay {
        align-items: center;
    }

    .ct-panel {
        border-radius: 24px;
        max-height: 85dvh;
    }
}
