/* ログインページの色味を新デザインに統一 */
#cart1_02.login_page .login_box02 ul li .logout {
    background: linear-gradient(135deg, #888888 0%, #333333 100%);
    border-radius: 50px;
    transition: opacity 0.3s;
}

#cart1_02.login_page .login_box02 ul li .logout:hover {
    opacity: 0.8;
}

.cart_link {
    background: linear-gradient(135deg, #888888 0%, #333333 100%);
    border-radius: 50px;
    transition: opacity 0.3s;
}

.cart_link:hover {
    opacity: 0.8;
}

.cart_link input[type="submit"] {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
    padding: 13px 0;
    width: 100%;
}

.cart_inner {
    border: 1px solid #EAEAEA;
}

#cart1_02.login_page .sub_box .cart_inner dl:nth-of-type(1) {
    border-bottom: 1px solid #EAEAEA;
}

#cart1_02.login_page .login_box02.box01 {
    border-bottom: 1px solid #EAEAEA;
}

.cart_link.back a {
    color: #555;
    transition: color 0.3s;
}

.cart_link.back a:hover {
    color: #000;
}

.cart_link.back span::before {
    border-color: transparent #555 transparent transparent;
}

#cart_btn {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 40px;
    text-align: center;
    background: var(--color-primary);
    color: #fff;
    border-radius: 20px;
    line-height: 40px;
    margin-bottom: 10px;
    cursor: pointer;
}

#dialog {
    z-index: 1001;
}

/* ダイアログをスクロール可能にする */
#dialog_body {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

#dialog_content {
    overflow-y: auto;
    max-height: calc(90vh - 120px); /* ヘッダーとフッターの高さを考慮 */
    flex: 1;
    min-height: 0;
    font-size: 13px; /* 基本フォントサイズを小さく */
}

/* ダイアログ内の各要素のフォントサイズを調整 */
#dialog_content .cart {
    font-size: 13px;
}

#dialog_content #item_name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

#dialog_content #plan {
    font-size: 13px;
}

#dialog_content #plan p {
    font-size: 13px;
    margin-bottom: 5px;
}

#dialog_content #plan span {
    font-size: 13px;
}

#dialog_content #plan em {
    font-size: 14px;
    font-weight: bold;
}

#dialog_content #cart_message {
    font-size: 12px;
    margin-bottom: 10px;
}

#dialog_content #cart_message.error {
    font-size: 12px;
}

#dialog_content #option {
    font-size: 12px;
}

#dialog_content #option p {
    font-size: 11px;
    padding: 6px 4px;
    margin-top: 8px;
}

#dialog_content #note {
    font-size: 12px;
    margin-top: 10px;
}

#dialog_content .right_box {
    font-size: 13px;
}

#dialog_content .right_box div {
    font-size: 13px;
}

/* サムネイル画像のサイズも少し小さく */
#dialog_content #thumbnail {
    width: 80px;
    height: 80px;
    margin-right: 8px;
}

#dialog_content .cart .right_box {
    width: calc(100% - 88px);
}

/* 数量選択のフォントサイズも調整 */
#dialog_content select[name="amount"],
#dialog_content .option_amount_select {
    font-size: 12px;
    padding: 4px;
    white-space: nowrap;
}

#dialog_content .option_amount_select {
    font-size: 12px;
    width: 100%;
    white-space: nowrap;
    flex: 1;
}
