/*
Theme Name: TOS skin theme
Theme URI: http://tos-skin.local/
Author: Iman Irvansyah
Author URI: https://imanirvansyah.pro/
Description: A fully custom theme for TOS skin ecommerce.
Version: 1.0.0
Requires at least: 6.4
Text Domain: tos-skin-theme
*/

.no-decoration {
  text-decoration: none !important;
}

.is-obj-fit-cover {
  width: 100%;
  height: 100%;
  display: block;
}

.is-obj-fit-cover img {
  object-fit: cover;
  width: 100% !important;
  height: 100% !important;
}

.overflow-hidden {
  overflow: hidden;
}

.tos-hero-wrapper {
  position: relative;
  overflow: hidden;
  flex-direction: column-reverse;
}

.tos-hero-overlay {
  position: absolute;
  z-index: -1;
  top: 0;
  left: -25%;
}

.footer-menu-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.toskin-atc-wrapper .cart {
  width: 100% !important;
  display: flex;
  gap: 10px;
}

.toskin-atc-wrapper .cart .single_add_to_cart_button.button.alt.wp-element-button {

  width: 100% !important;
}

.toskin-atc-wrapper .cart .quantity {

  width: 100% !important;
}

@media (min-width: 782px) {
  .tos-hero-wrapper {
    flex-direction: row;
  }

  .footer-menu-grid {
    display: flex !important;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0;
  }

  .toskin-atc-wrapper .cart .quantity {
    width: 300px !important;
  }
}

.wc-block-components-notice-banner {
  margin: auto !important;
  margin-bottom: 24px !important;
  font-size: 16px !important;
}

.wc-block-components-notice-banner .button.wc-forward.wp-element-button {
  text-decoration: none !important;
  padding: 4px 8px !important;
}

/* Container */
.custom-cf7-form {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  font-family: inherit;
}

/* Rows and Columns */
.custom-cf7-form .form-row {
  margin-bottom: 30px;
}

.custom-cf7-form .half-width {
  display: flex;
  gap: 25px;
}

.custom-cf7-form .half-width>* {
  margin: 0;
}

.custom-cf7-form .half-width br {
  display: none;
}

.custom-cf7-form .half-width .form-group {
  flex: 1;
  min-width: 0;
}

.custom-cf7-form .half-width .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Base Input Styles */
.custom-cf7-form .form-group input[type="text"],
.custom-cf7-form .form-group input[type="email"],
.custom-cf7-form .form-group input[type="tel"],
.custom-cf7-form .form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #E2E8F0;
  background: transparent;
  padding: 12px 0;
  font-size: 15px;
  color: #333;
  box-shadow: none;
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s ease;
}

/* Placeholders */
.custom-cf7-form .form-group input::placeholder,
.custom-cf7-form .form-group textarea::placeholder {
  color: #718096;
  opacity: 1;
}

/* Focus states */
.custom-cf7-form .form-group input:focus,
.custom-cf7-form .form-group textarea:focus {
  border-bottom-color: #DCB88F;
}

.custom-cf7-form .form-group textarea {
  resize: vertical;
  min-height: 45px;
  margin-top: 15px;
}

/* File Upload Area */
.custom-cf7-form .file-upload-box {
  border: 1px dashed #A0AAB2;
  border-radius: 6px;
  padding: 35px 20px 25px;
  text-align: center;
  background-color: #FAFAFA;
  transition: all 0.3s ease;
}

.custom-cf7-form .upload-icon {
  margin-bottom: 15px;
}

.custom-cf7-form .upload-text {
  font-size: 15px;
  color: #718096;
  margin: 0 0 8px 0;
}

.custom-cf7-form .upload-text strong {
  color: #2D3748;
  font-weight: 600;
}

.custom-cf7-form .upload-limit {
  font-size: 13px;
  color: #A0AAB2;
  margin: 0 0 15px 0;
}

/* Tame and integrate standard CF7 file input field */
.custom-cf7-form .cf7-file-input {
  display: flex;
  justify-content: center;
}

.custom-cf7-form input[type="file"]::file-selector-button {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  padding: 8px 16px;
  color: #4A5568;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  margin-right: 12px;
}

.custom-cf7-form input[type="file"]::file-selector-button:hover {
  background: #F7FAFC;
  border-color: #CBD5E0;
}

/* Checkbox & Acceptance Row */
.custom-cf7-form .acceptance-row {
  margin-bottom: 30px;
}

.custom-cf7-form .wpcf7-acceptance label {
  display: flex !important;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

/* Custom Checkbox Design */
.custom-cf7-form .wpcf7-acceptance input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  margin-right: 12px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  background-color: transparent;
  margin-top: 0;
  transition: all 0.2s;
}

.custom-cf7-form .wpcf7-acceptance input[type="checkbox"]:checked {
  background-color: #FFFFFF;
  border-color: #DCB88F;
}

.custom-cf7-form .wpcf7-acceptance input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #DCB88F;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-cf7-form .wpcf7-list-item-label {
  font-size: 14px;
  color: #718096;
}

.custom-cf7-form .highlight-link {
  color: #F5A623;
  text-decoration: none;
}

.custom-cf7-form .highlight-link:hover {
  text-decoration: underline;
}

/* Submit Button */
.custom-cf7-form .submit-btn {
  width: 100%;
  background-color: #DCB88F;
  color: #FFFFFF;
  border: none;
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 2px;
}

.custom-cf7-form .submit-btn:hover {
  background-color: #CBA576;
}

/* Responsive Form Adjustments */
@media (max-width: 600px) {
  .custom-cf7-form .half-width {
    flex-direction: column;
    gap: 0;
  }
}

/* ===================== */
/* Footer Newsletter Form */
/* ===================== */
.footer-newsletter-form {
  margin-top: 1.5rem;
}

.footer-newsletter-fields {
  display: flex;
  gap: 2rem;
}

/* CF7 wraps fields in <p> tags via wpautop — flatten them for flex */
.footer-newsletter-fields>p {
  display: contents;
}

.footer-newsletter-fields .wpcf7-form-control-wrap {
  flex: 1;
}

/* Also hide any <br> tags CF7 might inject */
.footer-newsletter-fields br {
  display: none;
}

.footer-newsletter-form input[type="text"],
.footer-newsletter-form input[type="email"] {
  width: 100%;
  border: none;
  border-bottom: 1px solid #b0b8bc;
  background: transparent;
  padding: 12px 0;
  font-size: 15px;
  color: #333;
  box-shadow: none;
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s ease;
}

.footer-newsletter-form input::placeholder {
  color: #4a5a60;
  opacity: 1;
}

.footer-newsletter-form input:focus {
  border-bottom-color: #74AEBA;
}

/* Submit button — styled as toskin-btn ghost */
.footer-newsletter-form .footer-newsletter-submit {
  margin-top: 1.5rem;
}

.footer-newsletter-form .footer-newsletter-submit button[type="submit"].toskin-btn {
  padding-left: 0;
  padding-right: 0;
  background: transparent;
  border: none;
  color: inherit;
  font-family: inherit;
  font-weight: 400;
}

/* Set initial state for hover text-slide animation */
.footer-newsletter-form .toskin-btn__text-effect {
  transform: translateY(100%);
  opacity: 0;
}

/* Validation messages */
.footer-newsletter-form .wpcf7-not-valid-tip {
  font-size: 13px;
  color: #e53e3e;
  margin-top: 4px;
}

.footer-newsletter-form .wpcf7-response-output {
  font-size: 14px;
  margin-top: 1rem;
  padding: 8px 0;
  border: none;
}

@media (max-width: 600px) {
  .footer-newsletter-fields {
    flex-direction: column;
    gap: 0;
  }

  .is-mobile-justify-start {
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }

}

@media (max-width: 781px) {
  :where(.wp-block-columns.has-background) {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}