.acb_woocommerce {
  display: flex;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 20px;
  position: relative;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  gap: 24px;
  transition: all 0.3s ease;

  // Inactive states
  .inactive {
    opacity: 0.6;
    filter: grayscale(1);
    transition: all 0.3s ease;
  }

  .wpnts_ispro {
    justify-content: left;
    align-items: center;
    display: flex;
  }

  .inactive-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    border-radius: 12px;
    transition: all 0.3s ease;

    background: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
    cursor: not-allowed;
    z-index: 99;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);


    img.wpnts_woocommerce {
      width: 160px;
      height: 160px;
      filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
      transition: transform 0.3s ease;

      &:hover {
        transform: scale(1.05);
      }
    }

    .action-btns {
      text-align: center;
      position: relative;
      margin-top: 24px;

      h3.inactive-text {
        color: #252525;
        font-size: 1.25rem;
        margin-bottom: 16px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
      }

      .install-btn {
        display: flex;
        flex-direction: column;
        align-items: center;

        button.install-action {
          padding: 12px 24px;
          border: none;
          background-color: #008080;
          color: white;
          font-weight: 600;
          cursor: pointer;
          border-radius: 8px;
          transition: all 0.2s ease;
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

          &:hover {
            background-color: #006666;
            transform: translateY(-1px);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
          }
        }
      }
    }
  }

  // Left Section
  .acb_left {
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 7px 0px 12px 0px rgba(201, 201, 201, 0.47);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 1px 1px 1px 1px #008080;
    transition: all 0.3s ease;
    width: 50%;

    label {
      cursor: pointer;
    }

    &:hover {
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    h3 {
      display: flex;
      gap: 10px;
      align-items: center;
      font-size: 1.25rem;
      color: #1a1a1a;
      margin-bottom: 24px;
    }

    .wpnts-switch-salesnotifications,
    .wpnts-switch-stockoutofstocknotifications,
    .wpnts-switch-commentmoderationnotifications {
      margin-bottom: 24px;
      display: flex;
      align-items: center;
      position: relative;
      width: 100%;
      // background: #f8f9fa;
      padding: 16px;
      border-radius: 8px;
      transition: all 0.2s ease;

      &:hover {
        background: #f1f3f5;
      }

      .woo-free-feature {
        display: flex;
        align-items: center;
        gap: 12px;
      }

      label {
        margin: 0 12px;
        color: #4a5568;
      }

      p.PRO_TAG,
      p.NEW_TAGs {
        position: absolute;
        padding: 4px 8px;
        color: white;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 500;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      }

      p.PRO_TAG {
        right: 40px;
        background: #008080;
      }

      p.NEW_TAGs {
        right: 80px;
        background: #3182ce;
      }
    }

    svg.wcs_tooltip_icon {
      width: 16px;
      height: 16px;
      color: #718096;
      transition: color 0.2s ease;

      &:hover {
        color: #4a5568;
      }
    }
  }

  // Right Section
  .acb_right {
    flex: 1;
    padding: 20px;

    .formInput {
      width: 100%;
      max-width: 500px;

      textarea {
        height: 160px;
        width: 100%;
        padding: 12px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background-color: #f8f9fa;
        resize: vertical;
        transition: all 0.2s ease;

        &:focus {
          outline: none;
          border-color: #008080;
          box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
        }
      }

      input {
        width: 100%;
        padding: 12px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background-color: #f8f9fa;
        transition: all 0.2s ease;

        &:focus {
          outline: none;
          border-color: #008080;
          box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
        }
      }

      .wpnts-setting {
        position: relative;

        .passimg {
          position: absolute;
          right: 12px;
          top: 50%;
          transform: translateY(-50%);
          font-size: 18px;
          color: #4a5568;
          cursor: pointer;
          z-index: 999;
        }


        select {
          width: 100%;
          padding: 12px;
          border: 1px solid #e2e8f0;
          border-radius: 8px;
          background-color: #f8f9fa;
          appearance: none;
          cursor: pointer;
          transition: all 0.2s ease;

          &:focus {
            outline: none;
            border-color: #008080;
            box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
          }

          &:hover {
            border-color: #008080;
          }
        }

        &::after {
          content: '';
          position: absolute;
          right: 12px;
          top: 50%;
          transform: translateY(-50%);
          border-left: 5px solid transparent;
          border-right: 5px solid transparent;
          border-top: 5px solid #4a5568;
          pointer-events: none;
        }
      }
    }

    .save-webhook {
      padding: 12px 24px;
      border: none;
      background-color: #008080;
      color: white;
      font-weight: 600;
      cursor: pointer;
      border-radius: 8px;
      margin-top: 16px;
      transition: all 0.2s ease;

      &:hover {
        background-color: #006666;
        transform: translateY(-1px);
      }
    }
  }

  // Video Section
  .acb_video {
    flex: 1;
    padding: 20px;

    .wcs-player-wrapper {
      position: relative;
      padding-top: 30%;
      border: 6px solid white;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

      .wcs-react-player {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
      }
    }
  }
}

// Parent Section
.parent-section {
  display: flex;
  flex-direction: column;
  gap: 12px;

  .toogle-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .section-child {
    margin-left: 40px;
    padding: 12px;
    // background: #f8f9fa;
    border-radius: 6px;

    select.woo-select-fields {
      margin: 0 0 16px 12px;
      padding: 8px 12px;
      border: 1px solid #e2e8f0;
      border-radius: 6px;
      background-color: white;
      transition: all 0.2s ease;

      &:focus {
        outline: none;
        border-color: #008080;
        box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
      }
    }
  }
}

// Responsive Styles
@media screen and (max-width: 1024px) {
  .acb_woocommerce {
    flex-direction: column;
    padding: 16px;
    gap: 16px;

    .acb_left,
    .acb_right,
    .acb_video {
      width: 100%;
      padding: 16px;
    }

    .acb_right .formInput {
      width: 100%;
      max-width: none;
    }
  }
}

@media screen and (max-width: 768px) {
  .acb_woocommerce {
    [class*="wpnts-switch-"] {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;

      p.PRO_TAG,
      p.NEW_TAGs {
        position: static;
        display: inline-block;
        margin-top: 8px;
      }

      .woo-free-feature {
        width: 100%;
        justify-content: space-between;
      }
    }

    .parent-section .section-child {
      margin-left: 20px;
    }

    .inactive-overlay {
      img.wpnts_woocommerce {
        width: 120px;
        height: 120px;
      }
    }
  }
}

@media screen and (max-width: 480px) {
  .acb_woocommerce {
    padding: 12px;

    .acb_left,
    .acb_right,
    .acb_video {
      padding: 12px;
    }

    .save-webhook {
      width: 100%;
    }

    .parent-section .section-child {
      margin-left: 0;

      select.woo-select-fields {
        margin-left: 0;
        width: 100%;
      }
    }
  }
}