/* カスタマイズ用CSS */
.ec-pageHeader h1{
    background-color: #FFF4F4;
}

.ec-navlistRole .ec-navlistRole__item.active a {
    background-color: #868686;
}

.ec-footerRole{
    background-color: #be0000;
}

.ec-footerNavi__itemList{
    color: #fff;
}

address{
    color: #fff;
}

.ec-footerCalendar{
    background-color: #FFF4F4;
}
.ec-footerTitle{
    background-color: #be0000;
}

.ec-headPromotionRole .ec-headPromotionRole__inner .item .title {
    font-size: 2.9vw;
    font-weight: bold;
    max-width: 39%;
}
.ec-headPromotionRole .ec-headPromotionRole__inner .item .title2 {
    font-size: 2.1vw;
    font-weight: bold;
    max-width: 39%;
}
.ec-headPromotionRole .ec-headPromotionRole__inner .item .description {
    font-size: 1.6vw;
    color: #C00000;
    font-weight: bold;
    line-height: 1.2;
    max-width: 39%;
}
.ec-pageHeader h1{
    background-color: #FFF4F4;
}

.ec-navlistRole .ec-navlistRole__item.active a {
    background-color: #868686;
}


/* === 注意事項レイアウト === */
.ec-cart_precaution {
    display: flex;          /* Flexboxを使う */
    flex-direction: column; /* 中身（アイコンとh2）を縦に並べる */
    align-items: center;    /* 横方向の真ん中に寄せる */
}

.ec-cart_precaution i {
    font-size: 2rem;        /* アイコンを少し大きく */
    margin-bottom: 1rem;    /* 下の文字との間隔をあける */
    color: #be0000;            /* 注意喚起用の赤色など */
}

.ec-cart_precaution h2  {
    display: flex;
    justify-content: center;
}
.ec-cart_precaution h2 p {
    width: fit-content;
    margin-bottom: 0.5rem;

}

.ec-cart_precaution h2 p span {
    display: block;
    text-indent: -1em;
    margin-top: 1rem;
    padding-left: 1em;
    font-size: 1rem;
}

/* === モバイル用設定（画面幅が768px以下の場合） === */
@media screen and (max-width: 768px) {
    .ec-headPromotionRole .ec-headPromotionRole__inner .item .title{
        font-size: 7vw;
        font-weight: bold;
        max-width: initial;

    }

    .ec-headPromotionRole .ec-headPromotionRole__inner .item .title2{
        font-size: 5vw;
        font-weight: bold;
        margin-top: -20px;
        max-width: initial;
    }

    .ec-headPromotionRole .ec-headPromotionRole__inner .item .description {
        font-size: 4vw;
        color: #C00000;
        font-weight: bold;
        max-width: initial;
    }

    .ec-cart_precaution i {
        margin-bottom: 0.3rem;
    }
    .ec-cart_precaution h2 p span {
        font-size: 0.8rem; 
        
        margin-top: 0.8rem; 
    }
}

.gide_link {
    color: #be0000;
    font-size: 0.8rem;
    margin-bottom: 1rem;

}

.items_fixed {
    color: #be0000;
    text-align: center;
}


/* === 共立製薬リンクボタンのカスタマイズ === */ 

.link_to_kyoritsu {
    text-align: center; 
}

/* ボタン自体の設定 */
.link_to_kyoritsu .ec-blockBtn {
    background-color: #0048AA;
    border: 1px solid #0048AA;
    color: #fff;
    
    width: 400px; 
    margin: 0 auto;
    display: block;
    
    /* ボタン内の文字サイズや余白の微調整 */
    font-size: 1rem;
    line-height: 1.5;
    padding: 4px 10px;

    height: auto;

}

.disabled_link_to_kyoritsu {
    border: 1px solid #0048AA;
    color: #0048AA;

    width: 400px; 
    margin: 0 auto;
    display: block;
    
    /* ボタン内の文字サイズや余白の微調整 */
    font-size: 1rem;
    line-height: 1.5;
    padding: 10px;

    height: auto;
}

.cert_complete_check {
    color: #0048AA;
}

@media screen and (max-width: 768px) {
    .link_to_kyoritsu .ec-blockBtn {
        width: 100%; 
        font-size: 0.9rem;
        padding: 4px 8px;
    }

    .disabled_link_to_kyoritsu {
        width: 100%; 
        font-size: 0.9rem;
        padding: 4px 8px;
    }
}



/* === 対象ペット選択フォームのレイアウト === */
.ec-cartRow__petSelect {
    border: 1px solid #D41D17;
    color: #be0000;
    /* font-size: 0.7rem; */
    margin-top: 0.4em;
    padding: 0.2em 1rem;
    width: 600px;
    display: flex;
}

.ec-cartRow__petSelect select {
    border: none;
    color: #be0000;
    padding: 0 20px;
    width: auto;
    flex: 1;
}

.ec-cartRow__petSelect select option{
    border: none;


}

@media only screen and (max-width: 768px) {
    /* 1. 横並びを強制する */
    .ec-cartRow__contentColumn {
        display: flex !important;
        flex-wrap: nowrap !important; /* 折り返し禁止 */
        align-items: flex-start;      /* 上揃え */
    }

    /* 2. 画像エリアの調整 */
    .ec-cartRow__img {
        width: 80px !important;       /* 画像幅を固定（必要に応じて調整） */
        flex: 0 0 80px !important;    /* 縮まないように固定 */
        margin-right: 10px !important; /* テキストとの隙間 */
        margin-bottom: 0 !important;   /* 縦並び用の下の余白を消す */
    }

    /* 3. テキストエリアの調整 */
    .ec-cartRow__summary {
        flex: 1 1 auto;               /* 残りの幅を全部使う */
        width: auto !important;       /* 幅指定を解除 */
        padding: 0 !important;        /* 余計な余白を削除 */
    }

    /* 4. 文字サイズを小さくして収める */
    .ec-cartRow__name, 
    .ec-cartRow__unitPrice, 
    .ec-cartRow__sutbtotalSP {
        font-size: 12px !important;   /* 文字サイズを縮小 */
        line-height: 1.4;
        margin-bottom: 5px;
    }
    
    /* 商品名は少し太くして見やすく */
    .ec-cartRow__name a {
        font-weight: bold;
        display: block; /* 改行させる */
    }

    /* 5. ペット選択フォームの調整 */
    .ec-cartRow__petSelect {
        margin-top: 8px;
        width: auto;
        display: block;
    }
    
    .ec-cartRow__petSelect label {
        font-size: 10px; /* ラベルはさらに小さく */
        display: block;  /* ラベルを上段へ */
        margin-bottom: 2px;
    }

    .ec-cartRow__petSelect select {
        font-size: 12px;
        height: 30px;    /* 高さを少し低く */
        padding: 2px 5px;
        width: 100%;     /* 横幅いっぱい使う */
        text-align: left;
    }
}
.ec-cartRow .ec-cartRow__amountColumn .ec-cartRow__amountUpButton .ec-cartRow__amountUpButton__icon img {
        display: block;
        margin-left: -0.4em;
        width: .8em;
        height: .8em;
        position: absolute;
        top: 28%;
        left: 50%; 
}

/* カート行を無効化するクラス */
.ec-cartRole__change_items {
    display: flex;           /* Flexboxレイアウトを有効化 */
    flex-direction: column;  /* 子要素を「縦」に並べる */
    align-items: flex-start;
    width: 20%;

}

.ec-cartRow.is-locked {
    opacity: 0.6;
    pointer-events: none;
    filter: grayscale(100%);
    background-color: #f5f5f5; 
    user-select: none;
}

/** 認証結果をクリアするリンク/注意書きのスタイル */
.clear_cert {
    color: #8f8f8f;
    text-decoration: underline;
    transition: 0.3s; 
}

/* マウスが乗った時のスタイル */
.clear_cert:hover {
    color: #555; 
    text-decoration: none; 
    cursor: pointer;
}

.vet_reregistration {
    color: #d41d17;
}

@media only screen and (max-width: 768px) {
    .ec-cartRole__change_items {
        width: 100%;
        font-size: 0.7rem;
    }
    
}
.cart-name-spot{
    margin-bottom:-20px;
}

.cart-name-regular{
    margin-bottom:-20px;
    margin-top: 20px;
}

@media screen and (min-width: 768px) {
    img[src*="rc_logo.png"] {
        width: auto !important; 
        height: 100% !important;
        max-height: 80px !important;
        object-fit: contain;
    }
}

@media screen and (max-width: 768px) {
  .rc-logo-img, img[src*="rc_logo.png"] {
      height: 50px !important;
      padding: 4px !important;
      width: auto !important;
      max-height: none !important;
      object-fit: contain;
      margin-left: none !important;
  }
}
