@charset "utf-8";

#bo_banner_order,
#bo_banner_write,
#bo_banner_view {
    margin: 0 auto;
    color: #222;
    box-sizing: border-box;
}

#bo_banner_order *,
#bo_banner_write *,
#bo_banner_view * {
    box-sizing: border-box;
}

.banner-order-wrap .bo-banner-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 28px;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.banner-order-wrap .bo-banner-head h2,
.banner-order-write h2,
.banner-order-view .bo-view-head h2 {
    margin: 0;
    font-size: 30px;
    font-weight: normal;
    line-height: 130%;
    font-family: 'font-R', sans-serif;
    word-break: keep-all;
}

.banner-order-wrap .bo-banner-head p {
    margin: 8px 0 0;
    color: #999;
    font-size: 14px;
    line-height: 140%;
}

.bo-banner-admin-btn,
.bo-banner-order-btn,
.bo-btn-primary,
.bo-btn-secondary,
.bo-banner-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 47px;
    padding: 0 24px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    color: #222 !important;
    font-size: 14px;
    font-weight: normal;
    text-decoration: none !important;
    cursor: pointer;
    transition: opacity .2s ease, border-color .2s ease, color .2s ease;
}

.bo-banner-admin-btn.main_color_bg,
.bo-banner-order-btn.main_color_bg,
.bo-btn-primary.main_color_bg,
.bo-banner-search button {
    border-color: #AA20FF;
    background: #AA20FF;
    color: #fff !important;
}

.bo-banner-admin-btn:hover,
.bo-banner-order-btn:hover,
.bo-btn-primary:hover,
.bo-btn-secondary:hover,
.bo-banner-search button:hover {
    opacity: .86;
}

.bo-btn-secondary {
    background: #aaa;
    border-color: #aaa;
    color: #fff !important;
}

.banner-order-wrap .bo-banner-cate {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 30px 0 24px;
    position: relative;
}

.banner-order-wrap .bo-banner-cate:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(0, 0, 0, .1);
}

.banner-order-wrap .bo-banner-cate a {
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    padding: 0 20px;
    color: #000;
    font-size: 16px;
    text-decoration: none;
    position: relative;
}

.banner-order-wrap .bo-banner-cate a:first-child {
    padding-left: 0;
}

.banner-order-wrap .bo-banner-cate a.active {
    color: #AA20FF;
    font-family: 'font-B', sans-serif;
}

.banner-order-wrap .bo-banner-cate a.active:after {
    content: "";
    position: absolute;
    left: 0;
    right: 20px;
    bottom: 0;
    height: 2px;
    background: currentColor;
}

.bo-banner-search {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.bo-banner-search input,
.bo-form-row input,
.bo-form-row select,
.bo-form-row textarea {
    width: 100%;
    min-height: 47px;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    color: #222;
    font-size: 14px;
    box-shadow: none;
}

.bo-form-row textarea {
    min-height: 130px;
    padding: 16px;
    resize: vertical;
    line-height: 150%;
}

.bo-banner-search input:focus,
.bo-form-row input:focus,
.bo-form-row select:focus,
.bo-form-row textarea:focus {
    border-color: #AA20FF;
    outline: none;
}

.bo-banner-search button {
    flex: 0 0 92px;
}

.bo-banner-count {
    margin-bottom: 14px;
    color: #999;
    font-size: 12px;
}

.bo-banner-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.bo-banner-grid-horizontal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bo-banner-card {
    overflow: hidden;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.bo-banner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.bo-banner-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    background: #f9f9f9;
    color: #999;
    text-decoration: none;
    overflow: hidden;
}

.bo-banner-thumb img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: opacity .2s ease;
}

.bo-banner-thumb:hover img {
    opacity: .85;
}

.bo-banner-body {
    padding: 20px;
}

.bo-banner-badge,
.bo-view-head span {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 9px;
    border-radius: 4px;
    background: #f6edff;
    color: #AA20FF;
    font-size: 12px;
    font-family: 'font-B', sans-serif;
}

.bo-banner-body h3 {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 135%;
    font-family: 'font-R', sans-serif;
    word-break: keep-all;
}

.bo-banner-body h3 a {
    color: #111;
    text-decoration: none;
}

.bo-banner-body dl,
.bo-sample-view dl,
.bo-order-summary {
    margin: 0 0 14px;
}

.bo-banner-body dl div,
.bo-sample-view dl div,
.bo-order-summary div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}

.bo-banner-body dt,
.bo-sample-view dt,
.bo-order-summary dt {
    color: #999;
    font-size: 13px;
}

.bo-banner-body dd,
.bo-sample-view dd,
.bo-order-summary dd {
    margin: 0;
    color: #222;
    font-family: 'font-B', sans-serif;
    text-align: right;
}

.bo-banner-body p {
    min-height: 44px;
    margin: 0 0 18px;
    color: #777;
    font-size: 14px;
    line-height: 150%;
    word-break: keep-all;
}

.bo-banner-order-btn {
    width: 100%;
}

.bo-banner-empty {
    grid-column: 1 / -1;
    padding: 70px 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #f9f9f9;
    text-align: center;
    color: #999;
}

.bo-banner-pages {
    margin-top: 32px;
    text-align: center;
}

.banner-order-write {
    max-width: 920px;
}

.banner-order-write h2 {
    padding: 0 0 24px;
}

.bo-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.bo-form-row {
    margin-bottom: 14px;
}

.bo-form-row label,
.bo-checks legend {
    display: block;
    margin-bottom: 8px;
    color: #999;
    font-size: 12px;
    font-weight: normal;
    word-break: keep-all;
}

.bo-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 4px 0 16px;
    padding: 18px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #f9f9f9;
}

.bo-checks legend {
    padding: 0 6px;
}

.bo-checks label {
    color: #222;
    font-size: 14px;
}

.bo-hidden-content {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
}

.bo-estimate {
    display: grid;
    gap: 6px;
    margin: 22px 0;
    padding: 24px;
    border-radius: 10px;
    background: #f9f9f9;
    border: 1px solid #eee;
}

.bo-estimate span {
    color: #999;
    font-size: 13px;
}

.bo-estimate strong {
    font-size: 30px;
    color: #AA20FF;
    font-family: 'font-B', sans-serif;
}

.bo-estimate small {
    color: #999;
    font-size: 12px;
}

.bo-form-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.bo-file-del {
    display: block;
    margin-top: 8px;
    color: #999;
    font-weight: normal !important;
}

.banner-order-view .bo-view-head {
    padding-bottom: 26px;
    border-bottom: 1px solid #eee;
}

.bo-sample-view {
    padding-top: 24px;
}

.bo-sample-view img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #f9f9f9;
}

.bo-view-content {
    margin: 24px 0;
    color: #444;
    font-size: 16px;
    line-height: 170%;
    word-break: keep-all;
}

@media all and (max-width:1024px) {
    .bo-banner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .banner-order-wrap .bo-banner-head h2,
    .banner-order-write h2,
    .banner-order-view .bo-view-head h2 {
        font-size: 24px;
    }
}

@media all and (max-width:640px) {
    .banner-order-wrap .bo-banner-head,
    .bo-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .bo-banner-grid,
    .bo-form-grid {
        grid-template-columns: 1fr;
    }

    .bo-banner-search {
        flex-direction: column;
    }

    .bo-banner-search button {
        flex-basis: auto;
        width: 100%;
    }

    .banner-order-wrap .bo-banner-cate {
        overflow-x: auto;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .banner-order-wrap .bo-banner-cate a {
        min-height: 48px;
        padding: 0 14px;
        font-size: 14px;
    }

    .banner-order-wrap .bo-banner-cate a:first-child {
        padding-left: 0;
    }
}
