.public-comments,
.comment-form-section {
    width: 100%;
    margin-top: clamp(48px, 7vw, 88px);
    padding-top: clamp(34px, 5vw, 56px);
    border-top: 1px solid rgba(21, 48, 43, .16);
}

.comments-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.comments-heading h2 {
    margin: 6px 0 12px;
    color: #13231f;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.comments-heading > p:last-child {
    margin: 0;
    color: #5c6965;
    font-size: 15px;
    line-height: 1.7;
}

.public-comments__list {
    display: grid;
    gap: 16px;
}

.public-comment {
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid rgba(21, 48, 43, .13);
    background: #fff;
}

.public-comment header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 20px;
    margin-bottom: 14px;
}

.public-comment strong {
    color: #15302b;
    font-size: 17px;
}

.public-comment time {
    color: #78827f;
    font-size: 13px;
}

.public-comment p {
    margin: 0;
    color: #283733;
    font-size: 16px;
    line-height: 1.75;
}

.public-comment-form {
    display: grid;
    gap: 22px;
    padding: clamp(24px, 4vw, 42px);
);
    border: 1px solid rgba(21, 48, 43, .14);
    background: #fff;
}

.public-comment-form__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.public-comment-form label {
    display: grid;
    gap: 9px;
}

.public-comment-form label > span {
    color: #1c2e29;
    font-size: 14px;
    font-weight: 600;
}

.public-comment-form input,
.public-comment-form textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #cbd3d0;
    border-radius: 0;
    padding: 13px 14px;
    color: #172520;
    background: #fff;
    font: inherit;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.public-comment-form input:focus,
.public-comment-form textarea:focus {
    border-color: #15302b;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(21, 48, 43, .1);
}

.public-comment-form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.65;
}

.comment-consent {
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    max-width: 850px;
}

.comment-consent input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
}

.comment-consent span {
    color: #5c6965 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.55;
}

.comment-consent a {
    color: #15302b;
    font-weight: 700;
}

.comment-submit {
    justify-self: start;
    min-width: 190px;
    border: 1px solid #15302b;
    padding: 14px 24px;
    color: #fff;
    background: #15302b;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition:
        color .2s ease,
        background .2s ease;
}

.comment-submit:hover,
.comment-submit:focus-visible {
    color: #15302b;
    background: #fff;
}

.comment-message {
    margin-bottom: 22px;
    padding: 16px 18px;
    border-left: 3px solid;
    font-size: 14px;
    line-height: 1.6;
}

.comment-message ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.comment-message--success {
    border-color: #287a54;
    color: #18563a;
    background: #e8f4ed;
}

.comment-message--error {
    border-color: #bd3f31;
    color: #8d2c22;
    background: #f9e6e2;
}

.comment-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.admin-heading__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.comments-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: 7px;
    padding: 0 6px;
    border-radius: 999px;
    color: #15302b;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
}

.comments-admin__list {
    display: grid;
    gap: 18px;
}

.admin-comment {
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid #d7dcda;
    border-left: 4px solid #8b9692;
    background: #fff;
}

.admin-comment--pendiente {
    border-left-color: #c28a24;
}

.admin-comment--aprobado {
    border-left-color: #287a54;
}

.admin-comment__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.admin-comment__header h2 {
    margin: 10px 0 0;
    font-size: 22px;
}

.admin-comment__header time {
    color: #69736f;
    font-size: 13px;
}

.admin-comment__article {
    margin-top: 18px;
    color: #69736f;
    font-size: 14px;
}

.admin-comment__article a {
    color: #15302b;
    font-weight: 700;
}

.admin-comment__text {
    margin: 20px 0;
    color: #24332e;
    font-size: 16px;
    line-height: 1.7;
}

.admin-comment__contact {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 16px;
    background: #f5f6f4;
}

.admin-comment__contact div {
    min-width: 0;
}

.admin-comment__contact dt {
    color: #71807b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-comment__contact dd {
    margin: 5px 0 0;
    overflow-wrap: anywhere;
    color: #172520;
}

.admin-comment__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.admin-comment__actions form {
    margin: 0;
}

.comment-delete {
    border-color: #a63b31 !important;
    color: #fff !important;
    background: #a63b31 !important;
}

.comments-admin__empty {
    padding: 50px 24px;
    border: 1px solid #d7dcda;
    color: #69736f;
    background: #fff;
    text-align: center;
}

@media (max-width: 820px) {
    .public-comment-form__grid,
    .admin-comment__contact {
        grid-template-columns: 1fr;
    }

    .public-comment-form {
        padding: 22px 18px;
    }

    .comment-submit {
        width: 100%;
    }

    .admin-heading__actions,
    .admin-comment__actions {
        width: 100%;
    }
}

/*
|--------------------------------------------------------------------------
| SWEETALERT ALTEA
|--------------------------------------------------------------------------
*/

body.swal2-shown {
    padding-right: 0 !important;
}

.swal2-container {
    padding: 20px !important;
    background: rgba(8, 25, 21, .58) !important;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.altea-swal {
    width: min(480px, calc(100vw - 32px)) !important;
    border: 1px solid rgba(21, 48, 43, .14) !important;
    border-radius: 2px !important;
    padding: clamp(26px, 5vw, 42px) !important;
    color: #172520 !important;
    background: #fff !important;
    box-shadow: 0 30px 80px rgba(4, 20, 16, .25) !important;
}

.altea-swal__title {
    padding: 12px 0 0 !important;
    color: #15302b !important;
    font-family: inherit !important;
    font-size: clamp(25px, 4vw, 34px) !important;
    font-weight: 500 !important;
    line-height: 1.12 !important;
    letter-spacing: -.025em !important;
}

.altea-swal__content {
    margin: 15px 0 0 !important;
    padding: 0 !important;
    color: #596762 !important;
    font-family: inherit !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
}

.altea-swal__button {
    min-width: 180px;
    margin-top: 22px;
    border: 1px solid #15302b;
    border-radius: 0;
    padding: 13px 22px;
    color: #fff;
    background: #15302b;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.altea-swal__button:hover,
.altea-swal__button:focus-visible {
    color: #15302b;
    background: #fff;
    transform: translateY(-1px);
}

.altea-swal-errors {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 20px;
    text-align: left;
}

.comment-submit:disabled {
    cursor: wait;
    opacity: .62;
}
