/* MODAL */

.confirm-modal {
    width: 100%;
    max-width: 640px;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .12);
    overflow: hidden;
    animation: modalShow .2s ease;
    border: 1px solid #edf0e7;
}

@keyframes modalShow {
    from {
        transform: translateY(10px) scale(.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* HEADER */

.confirm-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 28px 32px 22px;
    border-bottom: 1px solid #f0eee8;
    background: #fafbf8;
}

.confirm-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #e9f3e7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.confirm-header h2 {
    margin: 0;
    font-size: 30px;
    color: #2b7a4b;
    font-weight: 800;
}

.confirm-header p {
    margin: 6px 0 0;
    color: #7e847d;
    font-size: 15px;
}

/* CONTENT */

.confirm-content {
    padding: 28px 32px;
}

.confirm-section {
    margin-bottom: 20px;
}

.confirm-label {
    font-size: 13px;
    color: #8e9288;
    margin-bottom: 6px;
}

.confirm-value {
    font-size: 18px;
    font-weight: 600;
    color: #243127;
}

.confirm-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 14px;
    margin: 28px 0;
}

.confirm-card {
    border: 1px solid #e7eadf;
    border-radius: 18px;
    padding: 18px;
    background: #fcfcfa;
}

.confirm-card.single {
    margin:28px 0;
}

.confirm-card .title {
    display: block;
    font-size: 13px;
    color: #8f9588;
    margin-bottom: 8px;
}

.confirm-card .value {
    font-size: 18px;
    font-weight: 700;
    color: #2b7a4b;
}

/* CHILDREN */

.children-block {
    border: 1px dashed #d8e2d0;
    border-radius: 20px;
    padding: 20px;
    background: #fbfdf9;
}

.children-title {
    font-weight: 700;
    color: #2b7a4b;
    margin-bottom: 16px;
}

.child-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid #edf0e7;
}

.child-item:first-of-type {
    border-top: none;
    padding-top: 0;
}

.child-name {
    font-weight: 600;
    color: #263328;
}

.child-age {
    color: #8a8f87;
    font-size: 14px;
    margin-top: 4px;
}

.child-price {
    font-weight: 700;
    color: #2b7a4b;
}

/* TOTAL */

.total-block {
    margin-top: 28px;
    background: #eef5e9;
    border-radius: 20px;
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    color: #243127;
}

.total-block strong {
    font-size: 32px;
    color: #2b7a4b;
}

/* WARNING */

.warning-box {
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff8eb;
    border: 1px solid #f3dfb0;
    color: #7c6331;
    line-height: 1.5;
    font-size: 14px;
}

/* ACTIONS */

.confirm-actions {
    display: flex;
    gap: 14px;
    padding: 24px 32px 32px;
    background: #fafbf8;
    border-top: 1px solid #f0eee8;
}

.confirm-actions button {
    height: 56px;
    border: none;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}
.btn-primary {
    flex: 2;
}
.btn-secondary {
    flex: 1.5;
    background: #edf1ea;
    color: #556057;
}

.btn-secondary:hover {
    background: #e2e8de;
}

/* MOBILE */

@media (max-width: 800px) {

    .confirm-modal {
        border-radius: 24px;
    }

    .confirm-header,
    .confirm-content,
    .confirm-actions {
        padding-left: 20px;
        padding-right: 20px;
    }

    .confirm-grid {
        grid-template-columns:1fr;
    }

    .confirm-actions {
        flex-direction: column;
    }

    .btn-secondary {
        width: 100%;
    }

    .total-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}