html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background-color: var(--request-page-background, #FFFFFF) !important;
}

.csm-requestPage {
    --request-page-background: #FFFFFF;
    --request-page-text: #000;
    --request-page-card-background: #E3E3E3;
    --request-page-button-background: #000F6A;
    --request-page-button-text: #fff;
    --request-page-text-color: var(--request-page-text, #000);
    --p-height-700: 32px;
    --p-width-700: 32px;
    --p-border-radius-200: 8px;

    min-height: 100vh;
    background-color: var(--request-page-background, #FFFFFF) !important;
    color: var(--request-page-text, #000);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.4;
}

.csm-reqpg-topbar {
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.csm-reqpg-logo-img,
.csm-reqpg-topbar img,
.csm-reqpg-logo img {
    max-height: 48px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.csm-reqpg-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    background-color: var(--request-page-background, #FFFFFF) !important;
}

.csm-reqpg-content {
    width: 100%;
    max-width: 960px;
    padding: 20px 15px 25px;
    background-color: var(--request-page-background, #FFFFFF) !important;
    box-sizing: border-box;
}

.csm-reqpg-card {
    border-radius: 4px;
}

.csm-reqpg-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

.csm-reqpg-title {
    margin: 0 0 25px;
    text-align: center;
    line-height: 1.2;
    font-weight: 650;
    color: var(--request-page-text, #000);
}

.csm-reqpg-subtitle {
    margin: 0 0 25px;
    text-align: center;
    font-size: 16px;
    line-height: 1.4;
    color: var(--request-page-text, #000);
}

.csm-reqpg-note {
    margin: 14px 0 0;
    text-align: center;
    color: var(--request-page-text, #000);
    opacity: 0.82;
}

.csm-reqpg-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.csm-reqpg-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 48px;
}

.csm-reqpg-header-text {
    text-align: center;
}

.csm-reqpg-form {
    width: 100%;
}

.csm-reqpg-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    margin: 6px auto 0;
    max-width: 402px;
}

.csm-reqpg-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.csm-reqpg-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--request-page-text, #000);
    font-size: 14px;
}

.csm-reqpg-form input,
.csm-reqpg-form select,
.csm-reqpg-form textarea {
    font-size: 14px;
    color: var(--request-page-text, #000);
    width: 100%;
    max-width: 194px;
    height: 32px;
    margin-top: 0.25rem;
    padding: 3px 6px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    background-color: #fff;
}

.csm-reqpg-form textarea {
    min-height: 96px;
    resize: vertical;
}

.csm-reqpg-link {
    margin: 10px 0 12px;
    text-align: center;
    color: var(--request-page-button-background);
    cursor: pointer;
    font-weight: 600;
}

.csm-reqpg-button-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.csm-reqpg-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: none;
    min-height: var(--p-height-700, 32px);
    min-width: var(--p-width-700, 32px);
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 0.5rem;
    background-color: var(--request-page-button-background);
    color: var(--request-page-button-text);
    border-radius: var(--p-border-radius-200, 8px);
    cursor: pointer;
    transition: filter 0.15s ease;
    text-decoration: none;
    font-size: 12px;
    font-family: inherit;
    font-weight: 550;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
}

.csm-requestPage button.csm-reqpg-button,
.csm-requestPage input[type="submit"].csm-reqpg-button,
.csm-requestPage a.csm-reqpg-button {
    background-color: var(--request-page-button-background);
    color: var(--request-page-button-text);
    border-radius: var(--p-border-radius-200, 8px);
    font-size: 12px;
    font-family: inherit;
    font-weight: 550 !important;
    line-height: 1;
    border: none;
}

.csm-reqpg-button:hover,
.csm-reqpg-button:focus,
.csm-reqpg-button-full:hover,
.csm-reqpg-button-full:focus {
    color: var(--request-page-button-text);
    text-decoration: none;
    filter: brightness(1.15);
}

.csm-reqpg-button-full {
    min-height: var(--p-height-700, 32px);
    min-width: var(--p-width-700, 32px);
    width: 400px;
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 12px;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.csm-requestPage .btn,
.csm-requestPage input[type="submit"].btn {
    min-height: var(--p-height-700, 32px);
    min-width: var(--p-width-700, 32px);
    padding-left: 10px;
    padding-right: 10px;
    border-radius: var(--p-border-radius-200, 8px);
    border: none;
    background-color: var(--request-page-button-background);
    color: var(--request-page-button-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.csm-requestPage[data-request-type="do_not_sell_or_share"] .csm-reqpg-form .csm-reqpg-button {
    width: 85%;
    min-width: 180px;
    font-size: 12px;
    padding-left: 12px;
    padding-right: 12px;
}

.csm-reqpg-table {
    margin-top: 18px;
}

table {
    border-collapse: collapse;
}

.table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
    color: var(--request-page-text, #000);
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
}

.table tbody + tbody {
    border-top: 2px solid #dee2e6;
}

.table .table {
    background-color: #fff;
}

.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
    color: var(--request-page-text, #000);
}

.table-bordered thead th,
.table-bordered thead td {
    border-bottom-width: 2px;
}

.table-light,
.table-light > th,
.table-light > td {
    background-color: var(--request-page-card-background);
}

.text {
    color: var(--request-page-text, #000);
}

.csm-reqpg-footer-note {
    margin-top: 12px;
    text-align: center;
    color: var(--request-page-text, #000);
    opacity: 0.8;
}

.disabled {
    pointer-events: none;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .csm-reqpg-topbar {
        margin-top: 25px;
    }

    .csm-reqpg-field-grid {
        grid-template-columns: 1fr;
    }

    .csm-reqpg-form input,
    .csm-reqpg-form select,
    .csm-reqpg-form textarea {
        max-width: 100%;
    }

    .csm-reqpg-button-wrap {
        flex-direction: column;
        gap: 12px;
    }

    .csm-requestPage .csm-reqpg-button,
    .csm-requestPage .csm-reqpg-button-full {
        width: 65%;
        min-width: 180px;
        min-height: 44px;
        border-radius: 12px !important;
        font-size: 18px !important;
        font-weight: 550 !important;
        line-height: 1.1;
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Flash error on request pages: centered, smooth appearance */
.csm-reqpg-wrapper .alert.alert-danger,
.csm-reqpg-content .alert.alert-danger {
    text-align: center;
    border-radius: 10px;
    border: none;
    background: #fdf2f2;
    color: #9b2c2c;
    padding: 14px 44px 14px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    position: relative;
    font-size: 15px;
    line-height: 1.45;
}
.csm-reqpg-wrapper .alert.alert-danger .alert-heading,
.csm-reqpg-content .alert.alert-danger .alert-heading {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}
.csm-reqpg-wrapper .alert.alert-danger .close,
.csm-reqpg-content .alert.alert-danger .close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    padding: 0 4px;
    font-size: 1.25rem;
}
/* Flash container: full width so alert can be centered */
.csm-reqpg-content > .container:first-child {
    max-width: none;
    padding: 0;
    width: 100%;
}
.csm-reqpg-wrapper .alert.alert-danger .mb-0,
.csm-reqpg-content .alert.alert-danger .mb-0 {
    margin-top: 4px;
}
