:root {
    --cart-base: #ffe8d7;
    --cart-ac: #FF6F00;
    --btn-color: #FF6F00 ;
}

.checkout-header {

    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    background-color: #fff;
}

.banner-ct {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 50px;
    padding: 7px 0;
}

.banner-ct .banner {
    height: 100%;
}

.status-ct {
    display: flex;
    align-items: center;
    height: 40px;
    gap: 20px;

}

.status-item {
    position: relative;
    flex: 1;
    text-align: center;
    height: 100%;
    font-size: small;
    font-weight: bold;
    background-color: var(--cart-base);

    display: flex;
    justify-content: center;
    align-items: center;

}

.status-item::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 0;
    height: 100%;
    border-top: 20px solid transparent;
    /* 高さの半分 */
    border-bottom: 20px solid transparent;
    border-left: 20px solid #fff;
    /* ボックスと同じ色で三角形を描画 */
}

.status-a::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 0;
    height: 100%;
    border-top: 20px solid transparent;
    /* 高さの半分 */
    border-bottom: 20px solid transparent;
    border-left: 20px solid var(--cart-base);
    /* ボックスと同じ色で三角形を描画 */
}

.status-text {
    color: #777;
    padding-left: 20px;
}

.temp-status {
    background-color: var(--cart-ac);
    color: white;
}

.temp-status .status-text {
    color: white;
}

.temp-status::after {
    border-left: 20px solid var(--cart-ac);
    /* ボックスと同じ色で三角形を描画 */
}

/* ラッパー：矢印を擬似要素で描画するために position:relative */
.lselect-wrapper {
    display: inline-block;
    position: relative;
    width: 60px;
    /* お好みで */
    align-self: flex-end;
}

/* セレクト本体 */
.lselect {
    width: 100%;
    height: 36px;
    /* お好みで */
    padding: 0 12px;
    /* 左右の余白 */
    padding-right: 32px;
    /* 右側は矢印分を開ける */
    line-height: 36px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;

    /* ネイティブの矢印を消す */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}

/* 矢印（三角形）を ::after で追加 */
.lselect-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    pointer-events: none;
    transform: translateY(-50%);

    /* 下向き三角形 */
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #333;
}

.cart-item {
    padding: 20px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: small;
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.1);
    margin: 4px;
}

.thumbnail-wp {
    width: 80px;
    height: 80px;
    overflow: hidden;
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cart-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: start;
    font-family: "futura-pt", sans-serif;
}

.cart-name {
    color: var(--text-color);

}

.remove-item {
    display: inline;
    align-self: flex-end;
    text-decoration: none;
    color: #777;
}

.total-ct {
    padding: 0px 20px 10px 20px;
    font-family: "futura-pt", sans-serif;
}

.total {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

.dis {
    color: red;
    font-weight: 700;
}

/**/
.ato-recommend {
    padding: 20px;
    text-align: center;
    background-color: var(--cart-base);
    margin-bottom: 10px;
    position: relative;
}

/* ラッパーをフレックスにして縦中央揃え */
.radio-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 20px 10px;
    border: solid 1px #ccc;
    border-radius: 4px;
    background-color: #fff;
    margin: 0 10px;
}

/* ネイティブのラジオを不可視化 */
.radio-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* カスタム丸印のベース */
.radio-custom {
    position: relative;
    width: 16px;
    /* 外側の円の直径 */
    height: 16px;
    /* 外側の円の直径 */
    border: 2px solid #333;
    border-radius: 50%;
    margin-right: 8px;
    /* ラベルとの隙間 */
    box-sizing: border-box;
    transition: border-color 0.2s;
}

/* 選択時の内側の点 */
.radio-custom::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    /* 内側の点の直径 */
    height: 8px;
    /* 内側の点の直径 */
    background-color: var(--text-color);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.1s ease-out;
}

/* チェックされている時だけ inner dot を表示 */
.radio-input:checked+.radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

/* （任意）チェック時に外枠の色を変えたい場合 */
.radio-input:checked+.radio-custom {
    border-color: var(--text-color);
}

/* :has() で子要素の input:checked を検知 */
.radio-wrapper:has(.radio-input:checked) {
    border-color: #333;
    /* チェック時の枠線色 */

}

/* ラベルテキストのスタイル */
.radio-label {
    font-size: 14px;
    color: var(--text-color);
    display: flex;
    align-items: center;

    gap: 20px;
}

.sms-auth {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px 0;
    position: relative;
}

.ato-recommend .overlay {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

.sms-auth input {
    display: block;
    width: 100%;
    background-color: #fff;
    padding: 10px;
}

.sms-auth label {
    align-self: flex-start;
    font-size: small;
}

.sms-auth button {
    padding: 10px;
    background-color: var(--btn-color);
    color: #fff;
}

.back {
    font-size: small;
    color: var(--text-color);
    padding: 10px;
}

.error {
    font-size: small;
    color: red;
    font-weight: bold;
    padding: 4px 0;
}

.ok {
    font-size: small;
    color: green;
    font-weight: bold;
    padding: 4px 0;
}

.dialog-ok {
    color: green;
    animation: pop 2s ease;
    border: green 1px solid;
    background-color: rgb(224, 255, 224);
    position: fixed;
    top: 20px;
    padding: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    width: 200px;
    text-align: center;
    font-weight: bold;

}

@keyframes pop {
    0% {
        top: -100px;
        opacity: 0;
    }

    20% {
        top: 20px;
        opacity: 1;
    }

}

/*フォーム*/
.form-title {
    font-size: 1rem;
    padding: 10px 10px;
    margin-top: 10px;
}

.checkout-input {
    padding: 4px 10px;
    border: solid #666 1px;
    border-radius: 4px;
}

.checkout-input input {
    width: 100%;
    padding: 5px;
}

.checkout-input label {
    font-size: x-small;
    color: #666;
}

.form {
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 10px;
}

/*支払い*/
.payment-ct {
    padding: 0px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.credit-form-ct div {

    max-width: 100%;
}

.credit-form-ct {
    max-height: 0;
    overflow: hidden;
}

.red {
    color: red;
}

#credit-submit,
#bank-submit {
    width: 100%;
    padding: 10px;
    background-color: var(--btn-color);
    color: rgb(255, 255, 255);
    border-radius: 4px;
}

#bank-form-ct,
#paypay-form-ct {
    max-height: 0;
    overflow: hidden;
}

#bank-form,
#paypay-form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #fafafa;
}

#paypay img {
    width: 100%;
    object-fit: contain;
}

/**/
.full-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    gap: 5px;
}

.loader {
    width: 50px;
    height: 50px;
    border: solid 4px #333;
    border-top: solid #fff 4px;
    border-radius: 50%;
    animation: roll 1s linear infinite;
}

@keyframes roll {
    0% {
        transform: rotateZ(0);

    }

    100% {
        transform: rotateZ(360deg);

    }
}

/*コード*/
.amb-code{
    padding: 0 10px;
}
#apply-code{
    padding: 10px;
    background-color:#7F8C8D    ;
    border: solid #ffffff 1px;
    width: 100%;
    margin-top: 5px;
    color: #ffffff;
}