/* contact7 20251209*/
/* -----------------------------------------------------------
   페스트북 PRO 페이지 Contact Form 7 (최종 수정본: 꽉 찬 너비)
   Target ID: wpcf7-f5611-p3818-o1
----------------------------------------------------------- */

/* 1. 폼 스타일 (꽉 찬 너비 + 오리지널 디자인) */
#wpcf7-f5611-p3818-o1 form.wpcf7-form {
    width: 100%;         /* 부모 요소 너비에 맞춤 */
    max-width: 100%;     /* 600px 제한 해제 -> 꽉 차게 변경 */
    margin: 0 auto;
    padding: 25px 20px 20px 20px; /* 내부 여백을 조금 더 주어 안정감 확보 */
    background-color: #f9f9f9;    /* 원래 배경색 */
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: 'Noto Sans KR', sans-serif;
    box-sizing: border-box; /* 패딩이 너비를 넘지 않도록 설정 */
}

/* 2. 레이블 스타일 */
#wpcf7-f5611-p3818-o1 label {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

/* 3. 입력창 공통 스타일 */
#wpcf7-f5611-p3818-o1 input[type="text"],
#wpcf7-f5611-p3818-o1 input[type="email"],
#wpcf7-f5611-p3818-o1 textarea,
#wpcf7-f5611-p3818-o1 input[type="file"] {
    width: 100%;
    padding: 12px; /* 터치하기 좋게 살짝 키움 */
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    background-color: #fff;
}

/* 4. 텍스트 박스 높이 (120px) */
#wpcf7-f5611-p3818-o1 textarea {
    height: 120px; 
    resize: vertical;
}

/* 5. 제출 버튼 스타일 */
#wpcf7-f5611-p3818-o1 input[type="submit"] {
    background-color: #007BFF;
    color: #fff;
    padding: 14px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 10px;
}
#wpcf7-f5611-p3818-o1 input[type="submit"]:hover {
    background-color: #0056b3;
}

/* -------------------------------------------------------
   [여백 제거 패치] 
------------------------------------------------------- */

/* 1. 성함/필명 위쪽 불필요한 여백 제거 */
#wpcf7-f5611-p3818-o1 form.wpcf7-form > p:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 2. 첨부파일 위쪽 거대한 공백(숨겨진 UTM 필드 공간) 제거 */
#wpcf7-f5611-p3818-o1 p:has(input[type="hidden"]) {
    display: none !important;
}

/* 구형 브라우저 및 일반적인 Hidden 필드 처리 */
#wpcf7-f5611-p3818-o1 input[type="hidden"],
#wpcf7-f5611-p3818-o1 input[type="hidden"] + br {
    display: none !important;
    line-height: 0 !important;
    margin: 0 !important;
    height: 0 !important;
}

/* 첨부파일 입력창 자체 여백 미세 조정 */
#wpcf7-f5611-p3818-o1 input[type="file"] {
    margin-top: 0; 
}

/* 안내 문구(Placeholder) 스타일 */
#wpcf7-f5611-p3818-o1 textarea::placeholder {
    color: #a5a5a5;
    font-weight: 400;
    font-size: 13px;
    opacity: 1;
}








/* 전체 사이트 링크 스타일 */
a {
    color: black; /* Black text color for links */
    text-decoration: none; /* Remove default underline */
    border-bottom: 1px solid #0080FF; /* Thin blue underline */
}

/* Hover effect for all links */
a:hover {
    color: #0080FF; /* Change text color on hover */
    border-bottom: 1px solid #0080FF; /* Keep underline color on hover */
}

/* 푸터 등 특정 블록은 예외 */

.wp-block-template-part  a,.wp-block-group.alignfull.has-foreground-background-color.has-background.has-source-sans-pro-font-family.is-layout-constrained.wp-block-group-is-layout-constrained a,
.elementor-widget-container a {
    color: inherit; /* Restore default styles */
    border-bottom: none; /* Remove underline */
}

.wp-block-columns.has-background-color.has-text-color.has-normal-font-size.is-layout-flex.wp-container-core-columns-is-layout-15.wp-block-columns-is-layout-flex a {
    color: white !important; /* Explicitly set the color */
    text-decoration: none !important; /* Remove underline */
	border-bottom: 0px  !important;
}

/* 특정 블록들 밑줄없애기 */
.wp-block-columns.is-layout-flex.wp-container-core-columns-is-layout-16.wp-block-columns-is-layout-flex a,
.wp-block-image.size-full.has-lightbox.lightbox-7 a {
    color: inherit; /* Set link text color to black */
    text-decoration: none; /* Remove default underline */
    border-bottom: 0px 
}

/* 스크롤 버튼. 먹히려면 해당 페이지에 custom html 넣어야 함 */

.scroll-button {
  display: inline-block;
  margin: 5px 0;
  background-color: #007bff;
  color: white;
  padding: 10px 15px;
  border-radius: 50%;
  text-align: center;
  text-decoration: none;
  font-size: 18px;
  position: fixed;
  right: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 1000;
}

.scroll-button[href="#top"] {
  bottom: 60px; /* Button for scrolling to top */
}

.scroll-button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}





/* ===== 20260308 Festy AI 상품 페이지 전용 ===== */
body.postid-38706 .site-main {
  background-color: #f9fbff; /* 페스트북 특유의 옅은 블루 배경 */
}

body.postid-38706 .product {
  max-width: 1180px;
  margin: 60px auto 40px;
  padding: 40px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid #eef0f4;
}

/* 이미지 영역 */
body.postid-38706 .woocommerce-product-gallery {
  border-radius: 20px;
  overflow: hidden;
  background: #f8f9fa;
  padding: 20px;
  border: 1px solid #f0f3f7;
}

/* 우측 정보 영역 */
body.postid-38706 div.product .summary {
  background: #ffffff;
  padding: 10px 10px 10px 30px;
}

/* 브랜드/카테고리/메타 숨김(원하면 유지 가능) */
body.postid-38706 .product_meta,
body.postid-38706 .posted_in,
body.postid-38706 .tagged_as,
body.postid-38706 .sku_wrapper {
  display: none !important;
}

/* 제목 (페스트북 타이포그래피 스타일) */
body.postid-38706 div.product .product_title {
  font-family: 'Noto Serif KR', serif;
  font-size: 38px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 15px;
  color: #1a2b3c;
  word-break: keep-all;
}

/* 가격 (페스트북 블루) */
body.postid-38706 div.product p.price,
body.postid-38706 div.product span.price {
  font-size: 32px;
  font-weight: 800;
  color: #0080ff;
  margin-bottom: 20px;
}

/* 짧은 설명 */
body.postid-38706 .woocommerce-product-details__short-description {
  font-size: 17px;
  line-height: 1.75;
  color: #555;
  margin-bottom: 30px;
  word-break: keep-all;
}

/* 수량 숨김: 충전 상품이면 보통 불필요 */
body.postid-38706 form.cart .quantity {
  display: none !important;
}

/* 버튼 (페스트북 스타일의 둥글고 세련된 버튼) */
body.postid-38706 form.cart .single_add_to_cart_button,
body.postid-38706 .single_add_to_cart_button.button {
  width: 100%;
  min-height: 60px;
  border-radius: 50px;
  border: 0;
  background-color: #0080ff;
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 128, 255, 0.25);
  transition: all 0.3s ease;
  cursor: pointer;
}

body.postid-38706 form.cart .single_add_to_cart_button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 128, 255, 0.35);
  background-color: #0060c0;
}

/* 탭 */
body.postid-38706 .woocommerce-tabs {
  margin-top: 40px;
  padding: 40px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid #eef0f4;
}

/* 관련 상품 숨김 */
body.postid-38706 .related.products {
  display: none !important;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
  body.postid-38706 .product {
    margin: 20px 15px;
    padding: 24px 20px;
    border-radius: 20px;
  }

  body.postid-38706 div.product .product_title {
    font-size: 28px;
  }

  body.postid-38706 div.product p.price,
  body.postid-38706 div.product span.price {
    font-size: 26px;
  }

  body.postid-38706 .woocommerce-product-gallery {
    margin-bottom: 20px;
    padding: 15px;
  }

  body.postid-38706 div.product .summary {
    padding: 0;
  }

  body.postid-38706 .woocommerce-tabs {
    padding: 25px 20px;
    margin-top: 30px;
  }
}











