#stcm-wrapper {
    --primaryColor: #177fd3;
    --backgroundColor: #fff;
    --textColor: #17324f;
    --iconColor: #fff;
    --iconBackgroundColor: #177fd3;
    --stcm-color-primary: #177fd3;
    --stcm-color-primary-dark: #1169b2;
    --stcm-color-text: #17324f;
    direction: rtl;
    font-family: Assistant, Arial, sans-serif;
}

#stcm-banner {
    width: min(720px, calc(100vw - 32px));
    max-width: 720px;
    padding: 24px;
    border: 1px solid #c9ddef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(24, 68, 111, .2);
    color: var(--stcm-color-text);
    text-align: right;
}

#stcm-banner.stcm-pos-bottom-center {
    bottom: 24px;
}

#stcm-banner h2 {
    margin: 0 0 8px;
    color: #173f69;
    font-size: 1.45rem;
    font-weight: 700;
}

#stcm-banner p,
#stcm-modal p {
    line-height: 1.55;
}

#stcm-banner .stcm-actions {
    width: 100%;
    min-width: 0;
    gap: 10px;
}

#stcm-wrapper .stcm-accept-all,
#stcm-wrapper .stcm-reject-all,
#stcm-wrapper .stcm-modal-save,
#stcm-wrapper .stcm-modal-reject-all {
    width: 100%;
    min-height: 46px;
    border: 2px solid var(--stcm-color-primary);
    border-radius: 10px;
    background: var(--stcm-color-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

#stcm-wrapper .stcm-accept-all:hover,
#stcm-wrapper .stcm-reject-all:hover,
#stcm-wrapper .stcm-modal-save:hover,
#stcm-wrapper .stcm-modal-reject-all:hover {
    border-color: var(--stcm-color-primary-dark);
    background: var(--stcm-color-primary-dark);
}

#stcm-banner .stcm-actions-row {
    justify-content: flex-start;
}

#stcm-banner .stcm-preferences-button {
    color: #145f9f;
    font-size: 1rem;
    font-weight: 700;
}

#stcm-banner a.stcm-logo,
#stcm-modal .stcm-credit-link {
    display: none;
}

#stcm-modal {
    direction: rtl;
    border: 1px solid #c9ddef;
    border-radius: 18px;
    color: var(--stcm-color-text);
    text-align: right;
}

#stcm-modal header,
#stcm-modal .stcm-consent-row,
#stcm-modal footer {
    direction: rtl;
}

#stcm-modal .stcm-modal-close {
    margin-right: auto;
    margin-left: 0;
}

#stcm-modal footer {
    gap: 10px;
}

#stcm-icon {
    display: none !important;
    border-color: #fff;
    background: var(--stcm-color-primary);
    box-shadow: 0 7px 22px rgba(24, 68, 111, .22);
}

@media (max-width: 640px) {
    #stcm-banner {
        width: calc(100vw - 20px);
        padding: 18px;
        border-radius: 15px;
    }

    #stcm-banner.stcm-pos-bottom-center {
        bottom: 10px;
    }

    #stcm-banner h2 {
        font-size: 1.25rem;
    }

    #stcm-modal {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }
}
