#cartOrderLayer.modal {
    position: fixed !important;
    inset: auto 0 0 0 !important; /* 화면 하단에 붙이기 */
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    background: transparent !important;
    padding: 0 !important;
    text-align: left !important;
}

#cartOrderLayer .card {
    padding: 30px 20px 20px; /* 핸들 공간 확보를 위해 위쪽 패딩 증가 */
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.7);
    font-family: 'Noto Sans KR', sans-serif;
    position: relative;
}

#cartOrderLayer .card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #E5E5E5;
    border-radius: 4px;
}

/* 헤더 */
#cartOrderLayer .card-header {
    display: flex;
    margin-bottom: 20px;
}

#cartOrderLayer .thumb {
    display: none !important; /* 이미지 숨김 */
}

#cartOrderLayer .title-wrap {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 4px;
}

#cartOrderLayer .title,
#cartOrderLayer .sub {
    font-weight: 800;
    font-size: 18px;
    color: #111;
}

/* 바디 (가격 박스) */
#cartOrderLayer .card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#cartOrderLayer .price-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0;
    background: #fff;
    transition: border 0.2s ease;
}

#cartOrderLayer .price-box.active {
    border: 1px solid #9A1643 !important;
    background: transparent !important;
}

#cartOrderLayer .price-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
}

/* 라디오 버튼 */
#cartOrderLayer .price-option input[type="radio"] {
    display: none;
}

#cartOrderLayer .radio-ui {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px;
    background: #fff !important; /* 기존 이미지 덮어쓰기 */
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    box-sizing: border-box;
}

#cartOrderLayer .price-option input[type="radio"]:checked + .radio-ui {
    border-color: #9A1643 !important;
}

#cartOrderLayer .price-option input[type="radio"]:checked + .radio-ui::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #9A1643;
    border-radius: 50%;
}

/* 텍스트 */
#cartOrderLayer .price-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#cartOrderLayer .label {
    font-size: 13px;
    color: #555;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
}

#cartOrderLayer .price {
    font-weight: 700;
    font-size: 15px;
    color: #111;
}

#cartOrderLayer .discount {    
    align-items: center;
}

#cartOrderLayer .discount .before {
    margin-right: 6px;
    text-decoration: line-through;
    color: #aaa;
    font-size: 13px;
}

#cartOrderLayer .discount .after {
    font-weight: 700;
    font-size: 15px;
    color: #111;
}

#cartOrderLayer .badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    background: #9A1643;
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

/* 우측 안내 */
#cartOrderLayer #layer-ablePayback {
    font-size: 13px;
    color: #777;
    text-align: right;
}

#cartOrderLayer #layer-ablePayback .payback {
    color: #9A1643;
    font-weight: 700;
}

#cartOrderLayer .note {
    font-size: 11px;
    color: #777;
    text-align: right;
}

/* Footer */
#cartOrderLayer .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: none;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
}

#cartOrderLayer .qty {
    display: flex;
    align-items: center;
    gap: 16px;
}

#cartOrderLayer .qty-label {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

#cartOrderLayer .qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 32px;
    background: #fff;
}

#cartOrderLayer .qty-btn {
    width: 32px;
    height: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
}

#cartOrderLayer .qty-btn img {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

#cartOrderLayer #qtyInput {
    width: 40px;
    height: 100%;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    padding: 0;
}

#cartOrderLayer .total {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

#cartOrderLayer #totalPrice {
    font-size: 18px;
    color: #017EFF;
    margin-right: 2px;
}

/* 하단 버튼 영역(취소버튼 숨기고 장바구니 풀사이즈로) */
#cartOrderLayer .card-action > div {
    display: flex !important;
    gap: 0 !important;
}

#closeBtn_bottom {
    display: none !important; /* 취소하기 버튼 완전 숨김 */
}

#cartSubmitBtn {
    flex: 1 1 100% !important; /* 100% 너비 차지 */
    height: 50px !important;
    background: #9A1643 !important; /* 버건디 색상 강제 지정 */
    border-radius: 6px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    cursor: pointer;
}

/* 장바구니 담기 텍스트 위치 강제 중앙 정렬 */
#cartSubmitBtn > div {
    position: static !important; /* 기존 absolute 무력화 */
    left: auto !important;
    top: auto !important;
    line-height: normal !important;
    font-size: 16px !important;
}