.ffcp-account-heading,
.ffcp-child-card__top,
.ffcp-checkout-child__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ffcp-child-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin: 20px 0 28px;
}

.ffcp-child-card,
.ffcp-profile-form-wrap,
.ffcp-product-child,
.ffcp-checkout-section,
.ffcp-checkout-child {
    border: 1px solid #d9dee8;
    border-radius: 12px;
    background: #fff;
    padding: 20px;
    box-sizing: border-box;
}

.ffcp-child-card h3,
.ffcp-checkout-child h4,
.ffcp-product-child h3,
.ffcp-checkout-section h3 {
    margin-top: 0;
}

.ffcp-summary-list {
    margin: 18px 0 0;
}

.ffcp-summary-list > div {
    padding: 10px 0;
    border-top: 1px solid #edf0f5;
}

.ffcp-summary-list dt {
    font-weight: 700;
}

.ffcp-summary-list dd {
    margin: 4px 0 0;
    white-space: pre-line;
}

.ffcp-profile-form-wrap {
    margin-top: 26px;
}

.ffcp-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ffcp-profile-form textarea,
.ffcp-checkout-child textarea,
.ffcp-product-child input,
.ffcp-product-child select {
    width: 100%;
    box-sizing: border-box;
}

.ffcp-profile-form .description,
.ffcp-checkout-child .description {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
}

.ffcp-sensitive-note {
    padding: 12px 14px;
    background: #f5f8ff;
    border-left: 4px solid #315efb;
}

.ffcp-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.ffcp-delete-form {
    margin-top: 12px;
}

.ffcp-product-child {
    margin: 18px 0;
}

.ffcp-product-help,
.ffcp-guest-note {
    margin-bottom: 0;
    font-size: 0.92em;
}

.ffcp-checkout-section {
    margin: 22px 0;
}

.ffcp-checkout-child {
    margin-top: 16px;
    background: #fbfcff;
}

.ffcp-checkout-child__heading span {
    font-weight: 600;
}

.ffcp-confirm,
.ffcp-save-profile {
    display: block;
    margin-top: 12px;
}

@media (max-width: 680px) {
    .ffcp-form-grid {
        grid-template-columns: 1fr;
    }

    .ffcp-account-heading,
    .ffcp-child-card__top,
    .ffcp-checkout-child__heading {
        display: block;
    }

    .ffcp-child-card__top .button {
        margin-top: 10px;
    }
}

.ffcp-account-details-children {
    margin: 0 0 28px;
    padding: 20px;
    border: 1px solid #d9dee8;
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
}

.ffcp-account-details-children__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.ffcp-account-details-children__heading h2 {
    margin: 0 0 4px;
}

.ffcp-account-details-children__heading p {
    margin: 0;
}

.ffcp-account-children-table-wrap {
    overflow-x: auto;
}

.ffcp-account-children-table {
    margin: 0 !important;
}

.ffcp-account-children-table th,
.ffcp-account-children-table td {
    vertical-align: middle;
}

.ffcp-account-children-table__action {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.ffcp-profile-status {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.86em;
    font-weight: 600;
    line-height: 1.35;
}

.ffcp-profile-status--saved {
    background: #eaf7ee;
    color: #176b36;
}

.ffcp-profile-status--missing {
    background: #fff4df;
    color: #7a4b00;
}

.ffcp-account-children-empty {
    margin: 0;
}

@media (max-width: 680px) {
    .ffcp-account-details-children__heading {
        display: block;
    }

    .ffcp-account-details-children__heading .button {
        margin-top: 12px;
    }

    .ffcp-account-children-table thead {
        display: none;
    }

    .ffcp-account-children-table,
    .ffcp-account-children-table tbody,
    .ffcp-account-children-table tr,
    .ffcp-account-children-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .ffcp-account-children-table tr {
        padding: 10px 0;
        border-bottom: 1px solid #edf0f5;
    }

    .ffcp-account-children-table tr:last-child {
        border-bottom: 0;
    }

    .ffcp-account-children-table td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
        padding: 7px 0 !important;
        text-align: right !important;
        border: 0 !important;
    }

    .ffcp-account-children-table td::before {
        content: attr(data-title);
        flex: 0 0 42%;
        font-weight: 700;
        text-align: left;
    }

    .ffcp-account-children-table__action {
        white-space: normal;
    }
}
