@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}


.inline-edit-sidebar {
    position: fixed; /* 画面に固定 */
    top: 0;
    right: 0;
    width: 400px; /* 編集エリアの幅 */
    height: 100%;
    background-color: #f7f7f7;
    border-left: 1px solid #ddd;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 9999; /* 他の要素より手前に表示 */
    padding: 20px;
    overflow-y: auto;
    /* 初期状態では非表示 */
    transform: translateX(100%); 
    transition: transform 0.3s ease-in-out;
}

/* 編集エリアが表示された状態のクラス */
.inline-edit-sidebar.is-open {
    transform: translateX(0);
}

#inline-edit-close-btn {
    float: right;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.product-item { /* 各商品アイテムのコンテナクラスを想定 */
    position: relative; /* ボタンを絶対配置するための基準 */
}

.edit-button-wrapper {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.edit-item-button {
    /* 必要に応じてスタイルを調整 */
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
}

@media screen and (max-width: 750px) {
  #sidebar {
    display: none !important;
  }
}