/* BASIC css start */
#myTodayView .table-d2-list { margin-top:10px }
#myTodayView .table-d2-list table td .tb-stock input { margin-right:3px; width:31px; height:21px; line-height:21px; border: 1px solid #acacac; font-size: 11px; text-align:center }
#myTodayView .btn-del { margin-top:40px; text-align:center }
#myTodayView .btn-del a { width:159px; height:48px; font-size:14px; line-height:48px }

#myTodayView .CSSbuttonKrMin { padding:4px 10px 3px }



/* 1. 멤버십 상품 행을 가입 링크의 위치 기준으로 설정 */
tr:has(input[name="brchks[]"][value="009002000002"]) {
    position: relative;
}

/* 2. 상품 이미지 링크의 클릭 영역이 상품 행을 기준으로 배치되도록 설정 */
tr:has(input[name="brchks[]"][value="009002000002"])
> td:nth-child(2),
tr:has(input[name="brchks[]"][value="009002000002"])
> td:nth-child(2) > .tb-center,
tr:has(input[name="brchks[]"][value="009002000002"])
> td:nth-child(2) > .tb-center > a {
    position: static;
}

/* 3. 버튼 칸 너비 설정 */
/* 기존 테이블의 열 너비를 유지 */
tr:has(input[name="brchks[]"][value="009002000002"])
> td:last-child {
    width: auto;
    min-width: 0;
}

/* 4. 이전에 표시했던 가입 안내 문구 제거 */
tr:has(input[name="brchks[]"][value="009002000002"])
> td:last-child > .tb-center::after {
    content: none !important;
}

/* 5. 기존 담기 버튼과 비슷한 크기·모서리로 변경 */
tr:has(input[name="brchks[]"][value="009002000002"])
a[href^="javascript:go_basket("] {
    display: inline-block !important;
    visibility: visible !important;
    pointer-events: none !important;
    font-size: 0 !important;

    box-sizing: border-box !important;
    width: 80px !important;
    min-width: 0 !important;
    height: 25.25px !important;
    line-height: 16.25px !important;
    padding: 4px 0 3px !important;
    margin: 0 !important;

    background: #d00000 !important;
    border: 1px solid #d00000 !important;
    border-radius: 6px !important;

    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    box-shadow: none;
}

/* 6. 가입 문구: 기존 글꼴을 유지하고 긴 문구의 자간만 조정 */
tr:has(input[name="brchks[]"][value="009002000002"])
a[href^="javascript:go_basket("]::after {
    content: "가입하기";
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 16.25px;
    letter-spacing: -1px;
    color: #fff;
    -webkit-text-fill-color: #fff;
}

/* 7. 가입 링크의 클릭 영역도 변경된 버튼 크기에 맞춤 */
tr:has(input[name="brchks[]"][value="009002000002"])
> td:nth-child(2) > .tb-center > a::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 25.25px;
    z-index: 10;
    cursor: pointer;
    background: transparent;
}
/* BASIC css end */

