/* Additions for the Laravel app on top of the template's compiled main.css. */

/* Theme colours (set from admin «Внешний вид»): defaults match the template. */
:root {
    --cg-accent: #A777FF;
    --cg-button: #FCED27;
    --cg-success: #00E5A0;
    --cg-danger: #FF5970;
}

/* Inline SVG icons carry template colours as attributes; CSS overrides presentation attributes. */
[fill="#A777FF" i] { fill: var(--cg-accent); }
[stroke="#A777FF" i] { stroke: var(--cg-accent); }
[stop-color="#A777FF" i] { stop-color: var(--cg-accent); }
[fill="#FCED27" i] { fill: var(--cg-button); }
[stroke="#FCED27" i] { stroke: var(--cg-button); }
[stop-color="#FCED27" i] { stop-color: var(--cg-button); }
[fill="#00E5A0" i] { fill: var(--cg-success); }
[fill="#FF5970" i] { fill: var(--cg-danger); }

/* Content pages (/page/{slug}) */
.content_page {
    position: relative;
    padding: 150px 0 80px;
}

.content_page .section_title {
    margin: 20px 0 40px;
}

.page_content {
    max-width: 820px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.page_content h2,
.page_content h3 {
    margin: 32px 0 12px;
    color: #fff;
    line-height: 1.3;
}

.page_content p,
.page_content ul,
.page_content ol,
.page_content blockquote {
    margin-bottom: 16px;
}

.page_content ul li {
    list-style: disc;
    margin-left: 20px;
}

.page_content ol li {
    list-style: decimal;
    margin-left: 20px;
}

.page_content a {
    color: var(--cg-accent);
    text-decoration: underline;
}

.page_content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.page_content blockquote {
    padding-left: 16px;
    border-left: 3px solid var(--cg-accent);
}

/* Maintenance page */
.maintenance_page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    text-align: center;
}

.maintenance_page .site_logo {
    display: inline-block;
    margin-bottom: 24px;
}

.maintenance_page .section_description {
    max-width: 520px;
    margin: 0 auto;
}

.input_error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.3;
    color: #ff6b6b;
}

.what_you + .input_error {
    margin: -8px 0 12px;
    text-align: center;
}

.item_star img.star_empty {
    opacity: 0.25;
}

.catalog_empty {
    padding: 40px 0;
    text-align: center;
}

.reg_log_btns .logout_form {
    display: contents;
}

.reg_log_btns button.yellow_btn {
    border: 0;
    cursor: pointer;
    font: inherit;
}

a.filter_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.custom_checkbox input:disabled + .checkbox_icon,
.custom_checkbox input:disabled ~ .checkbox_text {
    opacity: 0.4;
    cursor: not-allowed;
}
