/* Updated 2024.01.10 */

/* Common elements === */

/* 나의 브랜드룸 */
#brs .btn-group-vertical {
    display: table-cell;
}

#brs .btn-group-vertical>.btn:not(:first-child),
#brs .btn-group-vertical>.btn-group:not(:first-child) {
    margin-top: 4px;
}

#brs .btn-group-vertical .dropdown-menu {
    margin-top: 2px;
    min-width: 100%;
    font-size: 14px;
    border: 1px solid #adb0b3;
    border-radius: 0;
}

#brs .btn-group-vertical .dropdown-menu .dropdown-item {
    padding: 0.25rem 12px;
    background-color: transparent;
}

#brs .dropdown-item:hover,
.dropdown-item:focus {
    color: #00b34a;
}

#brs .dropdown-toggle::after {
    margin-left: 4px;
    vertical-align: 2px;
}

/* Sub page elements === */
.goods-name,
.shop-name {
    text-transform: capitalize;
    font-weight: 500;
    /* font-size: 1rem; */
    color: #000 !important;
}

.goods-kind {
    text-transform: capitalize;
    font-weight: 500;
    font-size: 0.875rem;
    color: #008086;
}

.brand-name {
    text-transform: uppercase;
    font-weight: 500;
    font-size: inherit;
    color: #35383b;
    letter-spacing: -0.2px;
}

.goods-kind .brand-name::after {
    display: inline-block;
    content: "";
    width: 1px;
    height: 12px !important;
    min-height: 12px !important;
    align-self: unset;
    margin: 0 0.5em;
    vertical-align: -1px;
    background-color: #000;
    opacity: 0.25;
}

/* Section & Tabs with card integration ( progress-step-arrow ) */
section {
    margin-top: 3rem;
}

section>div {
    border-top: 1px solid #35383b;
    border-bottom: 1px solid #adb0b3;
}

section:first-child>div {
    border-top-width: 2px;
}

.attached-state .video-state {
    margin-right: 2px;
}

.attached-state .has-attachment {
    margin-right: -1px;
}

.video-state {
    display: inline-block;
    width: 22px;
    height: 14px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 94%;
}

.has-video {
    background-image: url("/img/live-fill.svg");
}

.has-no-video {
    background-image: url("/img/no-video-line.svg");
    opacity: 0.3;
}

.has-attachment {
    display: inline-block;
    width: 22px;
    height: 14px;
    background-repeat: no-repeat;
    background-position: 2px center;
    background-size: 78%;
    background-image: url("/img/attachment-line-black.svg");
    /* background-color: #ff6600; */
}

/* 골프 스윙분석 */
.specs .collapse-content {
    background-color: transparent;
}

.specs .collapse-content .goods-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 1em;
}

.specs .current-spec .table-type>div {
    flex: 0 0 auto;
    width: 50%;
    padding: 0.5rem;
    line-height: 1em;
    font-size: 13px;
    color: #86888a;
}

.specs .current-spec .table-type>div:nth-last-child(-n+2) {
    border-bottom: 0;
}

.specs .current-spec .shaft-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#modal-shot-list .table-type {
    border-top: 1px solid #adb0b3;
    border-bottom: 0;
}
@media (min-width: 360px) {
    .specs .current-spec .shaft-info>.table-type:last-child>div {
        width: 25%;
        border-bottom: 0;
    }
}

@media (min-width: 420px) {
    .specs .current-spec .table-type>div {
        flex: 0 0 auto;
        width: 25%;
    }

    .specs .current-spec .table-type>div:nth-last-child(-n+4) {
        border-bottom: 0;
    }
}

@media (min-width: 576px) {
    .specs .current-spec .table-type>div {
        flex: 0 0 auto;
        width: 16.6666666667%;
    }

    .specs .current-spec .table-type>div:nth-last-child(-n+6),
    #modal-shot-list .table-type>div:nth-last-child(-n+4) {
        border-bottom: 0;
    }
}

@media (min-width: 992px) {
    #modal-shot-list .table-type>div:nth-last-child(-n+6) {
        border-bottom: 0;
    }
}

/* 스윙보기 > 등록정보 */
#popover-container {position: relative;}
#popover-container .popover-reg-info {
    top: 32px !important;
    left: 8px !important;
    transform: none !important;
    z-index: 1000;
}
.popover-reg-info ul {display: table; background-color: #fff;}
.popover-reg-info ul li {display: table-row; line-height: 1.25em;}
.popover-reg-info ul li > * {display: table-cell; padding: 4px 0; white-space: nowrap;}
.popover-reg-info ul li strong {padding-right: 8px; white-space: nowrap;}

section.swing-anls > .row {
    --bs-gutter-x: 0.5rem; --bs-gutter-y: 0.5rem; margin: 0;
    padding: 0 0.25rem 0.5rem; background-color: #fafafa;
}
section.swing-anls .row div[class^="col-lg"] {display: flex;}
section.swing-anls .row div.row {padding:0; border:0;}

/* Side, Top View & Club Path */
section.swing-anls .row div.col-lg-4 > div {justify-content: center; align-items: center;}
section.swing-anls .row div.col-lg-4 > div canvas {width: 100% !important;}
section.swing-anls div.item {
    position: relative;
    display: flex;
    padding: 0.5rem; 
    min-height: 100px;
    border-width: 1px; border-style: solid; border-color:#e5e5e5 #ccc #bfbfbf #e5e5e5;
    text-align:center; font-size:14px; color: #9b9fa3; background-color: #fff;
}
section.swing-anls div.col:hover {border-color:#676d73; cursor: pointer;}

/* 스윙 뷰 - 7가지 구분 동작 */
section.swing-anls .row * {font-size: inherit;}

section.swing-anls .row.swing-seq div {
    padding: 0;
    justify-content: center;
    align-items: center;
    border-width: 1px;
    border-style: solid;
    border-color: #e5e5e5 #ccc #bfbfbf #e5e5e5;
    font-size: 12px !important;
    font-weight: 500;
    white-space: nowrap;
    text-transform: capitalize;
    color: #000;
}
/* @media (max-width: 991.98px) {
    section.swing-anls .row.swing-seq * {font-size: 12px !important;}
} */
section.swing-anls .row.swing-seq div:not(:last-child) {border-right: 0;}
section.swing-anls .row.swing-seq div.col:hover,
section.swing-anls .row.swing-seq div.col.active {
    background-color: #000;
    border-color: #000;
    color: #fff;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-out;
}

section.swing-anls .row.swing-seq div span {
    padding: 1em 0.5em;
}

section.swing-anls .row.swing-seq div img {
    padding: 2px;
}

section.swing-anls .row.swing-seq div.col:hover img,
section.swing-anls .row.swing-seq div.col.active img {
    filter: invert(100%) sepia(0%) saturate(7458%) hue-rotate(64deg) brightness(91%) contrast(111%);
}

/* 스윙 뷰 - 체중그래프 */
.swing-wt {
    margin-top: 0.5rem;
    justify-content: center;
    align-items: center;
    /* min-height: 5rem; */
    background-image: url("/img/shoeprint.svg");
    background-size: 22px;
    background-repeat: no-repeat;
    background-position: 39px center;
}

.swing-wt::before {
    display: block;
    content: "";
    width: 100%;
    height: 1px;
    background-color: #dcdee0;
}

.swing-wt>div,
.swing-wt div>div {
    padding: 0 !important;
    border: 0 !important;
}

.swing-wt .wt-info {
    position: absolute;
    display: flex;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
}

.swing-wt .wt-value {
    position: relative;
    flex: 0 0 84px;
}

.swing-wt .wt-value div {
    display: flex;
    flex-direction: column; 
    font-size: 10px !important;
    font-weight: 500;
}

.swing-wt .wt-value input {
    width: 24px;
    border: 1px solid #e5e7e8;
    border-radius: 4px;
}

.swing-wt .wt-graph {
    margin: 0 8px;
    display: flex;
    flex: 0 0 auto;
    width: calc(100% - 100px) !important;
}

/* 광고등록 */
section.adv > .row {
    --bs-gutter-x: 0.5rem; --bs-gutter-y: 0.5rem; margin: 0;
    padding: 0 0.25rem 0.5rem; background-color: #fafafa;
}
section.adv .row div:not([class|=col-md]) {
    display: flex;
    padding: 0.5rem; text-align:center;
    border-width: 1px; border-style: solid; border-color:#e5e5e5 #ccc #bfbfbf #e5e5e5;
}
section.adv .row div:not([class|=col-md]):hover {border-color:#52575c; cursor: pointer;}
section.adv .row div.row {padding:0; border:0;}
section.adv .row div[class^="col-md"] {display: flex;}
section.adv .adv-item {
    position: relative; 
    min-height: 80px;
    font-size:14px; color: #000; background-color: #fff;
}
section.adv .adv-item::before {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    display: block; width: 100%; padding: 32px 0 4px;
}
section.adv .adv-item.adv-video::before {
    content: "동영상 광고";
    background: url("/img/video-add-line.svg") no-repeat top center;
    background-size: 31px; opacity: 0.45;
}
section.adv .adv-item.adv-title::before {
    content: "타이틀 광고";
    background: url("/img/image-add-line.svg") no-repeat top center;
    background-size: 28px; opacity: 0.45;
}
section.adv .adv-item.adv-goods::before {
    content: "제품 광고";
    background: url("/img/image-add-line.svg") no-repeat top center;
    background-size: 28px; opacity: 0.45;
}
section.adv .adv-item.has-item::before {all: unset;}
section.adv .adv-item.adv-item-selected {border: 1px solid #52575c !important;}
section.adv .adv-item.adv-item-selected.adv-video::before,
section.adv .adv-item.adv-item-selected.adv-title::before,
section.adv .adv-item.adv-item-selected.adv-goods::before {opacity: 1; color: #35383b;}
section.adv .adv-item img {max-width: 100%; height: auto;}
section.adv .adv-goods img {align-self: center;}
section.adv .adv-goods p {flex: 1 1 auto; padding: 0.5rem 0.5rem 0;}

@media (max-width: 575.98px) {
    section.adv .adv-goods {flex: 0 0 auto; width: 100%;}
    section.adv .adv-goods:nth-of-type(2) {margin: 0.5rem 0;}
    section.adv .adv-goods img {width: 40%;}
    section.adv .adv-goods p {display: flex; padding: 0.5rem 0.75rem; text-align: left;}
    section.adv .adv-goods span {align-self: center;}
}

/* 구질 및 클럽 분석 */
section.fitting-anls h6 {display: flex;}
section.fitting-anls h6 mark {margin: 0 0 0 auto; padding-top: 4px; font-size: 13px; font-weight: 400;}
@media (max-width: 479.98px) {
    section.fitting-anls h6 {flex-direction: column;}
    section.fitting-anls h6 mark {margin: 4px 0 0 0;}
}
section.fitting-anls .card {border: 0; border-radius: 0;}
section.fitting-anls small.rounded-circle {
    display: inline-block; width: 16px; height: 16px; margin-right: 4px;
    vertical-align: 1px; line-height: 17px; text-align: center;
    font-size: 11px; color: #fff;
}
section.fitting-anls .pitch-anls canvas {width: 100% !important; max-height: 300px;}

div[id^="modal-adv"] .card-body {
    border-top: 1px solid #e5e7e8;
    line-height: 1em; text-align: center;
}
div[id^="modal-review"] label.list-group-item,
div[id^="modal-lesson"] label.list-group-item {
    display: flex;
    padding: 0.5rem;
    align-items: center;
    color: #52575c;
    border-top: 1px solid #e5e7e8;
    border-radius: inherit;
}
div[id^="modal-review"] label.list-group-item + label.list-group-item,
div[id^="modal-lesson"] label.list-group-item + label.list-group-item {margin-top: 16px;}

/* 원 포인트 레슨 */
section.fitting-lesson textarea.form-control-plaintext {
    padding-top: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    border: 0 !important;
}

section.fitting-lesson .rating-wrapper {
    width: 100%;
    align-items: center;
    border: 1px solid rgba(0, 179, 74, 0.3);
}

section.fitting-lesson .rating-wrapper label {
    display: flex;
    padding: 4px 10px;
    white-space: nowrap;
    font-weight: 500;
    font-size: 14px;
    color: #00b34a;
    background-color: rgba(0, 179, 74, 0.06);
}

/* 스펙 등록 sticky-column */
.reg-spec .table-responsive {
    margin: 0;
}

.reg-spec .table.b-table th,
.reg-spec .table.b-table td {
    padding: 0.5rem;
}

.reg-spec .table.b-table select {
    width: 100%;
    min-width: 84px;
}

.reg-spec .table.b-table .b-table-sticky-column[rowspan] {
    padding: 0;
}

.reg-spec .table.b-table .b-table-sticky-column[rowspan] .sticky-column-rowspan {
    display: flex;
    align-items: center;
}

.reg-spec .table.b-table .b-table-sticky-column[rowspan] .sticky-column-rowspan>div {
    flex-grow: 1;
}

.reg-spec .table.b-table .b-table-sticky-column[rowspan] .sticky-column-rowspan>div:first-child {
    padding: 0 12px;
}

.reg-spec .table.b-table .b-table-sticky-column[rowspan] .sticky-column-rowspan div.flex-column>div {
    padding-top: 0.5rem !important;
    padding-right: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.reg-spec .table.b-table .b-table-sticky-column[rowspan] .sticky-column-rowspan div.flex-column>div:not(:last-child) {
    border-bottom: 1px solid #e5e7e8 !important;
}

/* 샤프트 & 그립 */
.reg-etc .card {
    border: 0;
    border-radius: 0;
}

.reg-etc .card-title {
    margin: 0;
    padding: 12px;
    font-weight: 500;
    text-transform: capitalize;
    color: #fff;
    background-color: #35383b;
}

/* .reg-etc .card img {margin: 1rem; max-width: 100%;} */
.reg-etc .card-footer {
    padding: 0;
    background-color: #fff;
    border: 0;
}

.reg-etc .card-footer>.table {
    border-width: 1px;
}