/* Button Styling */

#mwb-custom-order-select {
  margin-bottom: 1.5rem;
}

.mwb-custom-report-order-container {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 12px;
  /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); */
  overflow: hidden;
}

.mwb-custom-report-order-header-tabs {
  display: flex;
}

.mwb-custom-report-order-header-tab {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  text-align: center;
  font-size: 18px;
  color: #3b333d;
  font-weight: 600;
  padding: 20px 30px;
  border: 1px solid #f9f9f9;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  transition: all 0.3s ease;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
}

.mwb-custom-report-order-header-tab:hover {
  color: #495057;
}

.mwb-custom-report-order-header-tab.active {
  background: #f9f9f9;
}

.mwb-custom-report-order-tab-content {
  display: none;
}

.mwb-custom-report-order-tab-content.active {
  display: block;
}

.mwb-custom-report-order-main-content {
  padding: 50px 19px;
  background: #f9f9f9;
}

.mwb-custom-report-order-steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.mwb-custom-report-order-step-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 10px;
  border: 1px solid rgba(59, 51, 61, 0.05);
  background: linear-gradient(
    180deg,
    rgba(59, 51, 61, 0.05) 0%,
    rgba(59, 51, 61, 0.04) 100%
  );
  padding: 25px 20px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  min-height: 442px;
}

.mwb-custom-report-order-step-card:hover {
  background: linear-gradient(180deg, #ff0 0%, rgba(59, 51, 61, 0.05) 100%);
}

.mwb-custom-report-order-step-icon {
  height: 100px;
  margin-top: auto;
  align-self: flex-end;
}

.mwb-custom-report-order-step-content {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.mwb-custom-report-order-step-title {
  font-size: 30px;
  font-weight: 600;
  background: linear-gradient(180deg, #3b333d 0%, #9e88a3 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0;
  line-height: 42px;
}

.mwb-custom-report-order-step-description {
  color: #3b333d;
  font-size: 14px;
  line-height: 24px;
  flex-grow: 1;
  padding: 0;
  margin: 0;
}

.mwb-report-form-content {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  border: 1px solid rgba(59, 51, 61, 0.05);
  background: rgba(59, 51, 61, 0.05);
  border-radius: 10px;
  min-height: 473px;
  padding: 20px;
}
.mwb-report-form-content p {
  margin-top: 0;
}
.mwb-custom-ticket-details {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
  text-align: left;
}

.label {
  font-weight: bold;
  padding-right: 10px;
}

#myModal .mwb-report-form-content h3 {
  padding: 0;
}

.mwb-custom-report-order-issue-section {
  text-align: center;
}

.mwb-custom-report-order-issue-section,
.mwb-custom-select-order-section {
  margin-bottom: 15px;
}

.mwb-custom-form-submission-error {
  display: none;
  padding-left: 19px;
}

.mwb-custom-form-submission-error > p {
  color: red;
}

.mwb-custom-submit-section {
  align-self: center;
  margin-top: auto;
  padding: 1px;
}
.mwb-custom-submit-section:hover {
  background: linear-gradient(180deg, #ff0 0%, rgba(59, 51, 61, 0.05) 100%);
  border-radius: 99px;
}
.mwb-custom-submit-section button,
.mwb-report-form-content .error-msg button {
  flex: none;
  width: max-content;
  font-size: 18px;
  padding: 10px 30px;
  background: #ff0;
  border-radius: 99px;
  line-height: 24px;
}
.mwb-custom-submit-section button:hover,
.mwb-report-form-content .error-msg button:hover {
  background: #f0eff0;
}

.loader {
  border: 4px solid #f3f3f3; /* Grey color */
  border-top: 4px solid #ff0; /* Darker grey for the spinning effect */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite; /* Spin animation */
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.woocommerce .loader::before {
  display: none !important;
}

/* .woocommerce-account
  .woocommerce-MyAccount-navigation
  ul
  li.woocommerce-MyAccount-navigation-link--order-issues
  a {
  position: relative;
  padding-left: 35px;
}

.woocommerce-account
  .woocommerce-MyAccount-navigation
  ul
  li.woocommerce-MyAccount-navigation-link--order-issues
  a::before {
  content: "";
  background-image: url("https://projectredis.kinsta.cloud/wp-content/uploads/2024/08/Report-Issue-Icon.png");
  width: 22px;
  height: 22px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  left: 4px;
  top: 9px;
} */

.mwb-custom-accordion-content > div {
  margin-bottom: 15px;
}

.mwb-custom-accordion-item-rdm-fields {
  margin-bottom: 15px;
}

.mwb-custom-accordion-item {
  border: 1px solid #ddd;
  border-radius: 5px;
}

.mwb-custom-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 52px;
  padding: 13px 25px;
  border-radius: 10px;
  border: 1px solid rgba(59, 51, 61, 0.2);
  background: #fff;
}

.mwb-custom-accordion-header select {
  padding: 5px;
  font-size: 1rem;
}

.mwb-custom-accordion-buttons {
  display: flex;
  gap: 10px;
}

.mwb-custom-accordion-content {
  display: none;
  padding: 15px 19px;
  padding-bottom: 0;
}

.mwb-custom-active .mwb-custom-accordion-content {
  display: block;
}

/* .mwb-custom-active .mwb-custom-btn.toggle {
  transform: rotate(180deg);
} */

/* Select Box */

.mwb-custom-select-rdm-reason {
  position: relative;
  display: inline-block;
  width: 100%;
}

.mwb-custom-select__selected {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(59, 51, 61, 0.5);
  font-size: 16px;
  font-weight: 400;
  background: #fff;
  border: 1px solid rgba(59, 51, 61, 0.2);
  padding: 13px 25px;
  border-radius: 10px;
  line-height: 24px; /* 150% */
  cursor: pointer;
}

.selector-icon {
  display: flex;
  width: 28px;
  height: 16px;
  background-image: url("https://www.projecttimber.com/wp-content/uploads/2025/06/arrow-selector.svg");
  background-repeat: no-repeat;
}
/* 
.mwb-custom-select__selected::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: red;
  z-index: 99;
} */

.mwb-custom-select__options {
  display: none;
  position: absolute;
  width: 100%;
  height: 40vh;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-top: 10px;
  z-index: 1000;
  overflow-y: scroll;
}

.mwb-custom-select__option,
.mwb-custom-select-order__option {
  padding: 2px 10px;
  cursor: pointer;
  border-bottom: 1px solid #ddd;
}
.mwb-custom-select__option:last-child,
.mwb-custom-select-order__option:last-child {
  border-bottom: none; /* More specific than removing all borders */
  border-radius: 0 0 10px 10px;
}
.mwb-custom-select__option:first-child:hover,
.mwb-custom-select-order__option:first-child:hover {
  border-radius: 10px 10px 0 0;
}
.mwb-custom-select__option:last-child:hover,
.mwb-custom-select-order__option:last-child:hover {
  border-radius: 0 0 10px 10px;
}
.mwb-custom-select__option:hover,
.mwb-custom-select-order__option:hover {
  background: #f0f0f0;
}

.mwb-custom-select__hidden {
  display: none;
}

/* Textarea */

.mwb-custom-textarea-comment {
  margin-bottom: 5px !important;
}
.mwb-custom-textarea-comment > textarea {
  width: 100%;
  height: 150px;
  padding: 10px 10px;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #fff;
  font-size: 16px;
  resize: none;
}

/* Image Uploader */

/* html * {
  box-sizing: border-box;
}

p {
  margin: 0;
}
  */

/* .mwb-custom-upload__box {
  padding: 40px;
} */

.mwb-custom-upload__inputfile {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.mwb-custom-upload__box {
  margin: 0 !important;
}
.mwb-custom-upload__btn-box {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  background: linear-gradient(276deg, #ff0 7.58%, #3b333d 91.63%);
  border-radius: 99px;
  padding: 1px;
  width: 172px;
  margin: 0 auto;
}
.mwb-custom-upload__btn-box:hover {
  background: none;
}
.mwb-custom-upload__btn {
  display: inline-block;
  text-align: center;
  min-width: 130px;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 10px 30px;
  border-radius: 97px;
  line-height: 26px;
  font-size: 14px;
  background: #f0eff0;
  border: none;
}
.mwb-custom-upload__btn:hover {
  background: #ff0;
}
.mwb-custom-upload__btn p {
  margin: 0;
}

.mwb-custom-upload__btn:hover {
  /* color: #00fe6c; */
  transition: all 0.3s ease;
}

.mwb-custom-select-order-id {
  margin-bottom: 1rem;
}

.mwb-custom-upload__img-wrap {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.mwb-custom-upload__img-box {
  width: 125px;
  padding: 0 10px;
  margin-bottom: 12px;
}

.mwb-custom-upload__img-close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 10px;
  right: 10px;
  text-align: center;
  line-height: 24px;
  z-index: 1;
  cursor: pointer;
}

.mwb-custom-upload__img-close:after {
  content: "\2716";
  font-size: 14px;
  color: white;
}

.mwb-custom-img-bg {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
  padding-bottom: 100%;
}

.mwbb-custom-order-issues-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mwbb-custom-order-card {
  position: relative;
  padding: 25px 25px 25px 35px;
  border-radius: 10px;
  border: 1px solid rgba(59, 51, 61, 0.05);
  border-left: none;
  background: rgba(59, 51, 61, 0.05);
  cursor: pointer;
}

.mwbb-custom-order-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  height: 100%;
  width: 10px;
  border-radius: 10px 0 0 10px;
  background: linear-gradient(180deg, #3b333d 0%, #9e88a3 100%);
  z-index: 10;
}

.mwbb-custom-order-card:hover::before {
  background: linear-gradient(180deg, #ff0 0%, rgba(59, 51, 61, 0.05) 100%);
}
.mwbb-custom-order-info {
  display: grid;
  grid-template-columns: calc(30% - 10px) calc(70% - 10px);
  gap: 20px;
  margin-bottom: 15px;
}

.mwbb-custom-order-info h3 {
  font-size: 1rem;
  margin: 0;
  color: #333;
  font-weight: 600;
  text-align: left; /* Align heading to the left */
  padding: 0;
}

.mwbb-custom-order-info p {
  font-size: 1rem;
  margin: 0;
  color: #555;
}

.mwbb-custom-status-text {
  font-weight: bold !important;
}

.mwbb-custom-order-issues-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: bold;
  color: #333;
}

/* Responsive Design */
@media (max-width: 600px) {
  .order-info {
    grid-template-columns: 1fr; /* Stacks the content vertically on mobile */
    gap: 5px;
  }

  .order-info h3 {
    margin-bottom: 5px;
  }

  .mwb-custom-upload__img-box {
    width: 90px;
  }

  .mwbb-custom-order-info {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mwb-custom-accordion-header {
    height: auto;
    gap: 8px;
  }
  .mwb-custom-form-submission-error {
    margin-top: 15px;
  }
}

/* sept 25 */

.mwb-custom-accordion-header {
  position: relative;
  padding: 10px 25px 10px;
}

.mwb-custom-accordion-arrows {
  border: 1px solid #000000;
  border-radius: 0;
  border-left: 0;
  border-top: 0;
  width: 10px;
  height: 10px;
  transform: translateY(-50%) rotate(45deg);
  position: absolute;
  right: 20px;
  top: 50%;
  transform-origin: center;
  transition: 0.2s ease;
}

.mwb-custom-active .mwb-custom-accordion-arrows {
  transform: translateY(-50%) rotate(-135deg);
}

/* RDM Intructions CSS */
.mwb-custom-order-issue-instruct-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
}
.mwb-custom-order-issue-instruct-col {
  flex: 0 0 100%;
  max-width: calc(33.33% - 20px);
  padding: 30px;
  background-color: #f6f5f8;
  text-align: center;
}
.mwb-custom-order-issue-instruct-step-image {
  max-width: 230px;
  margin: 0 auto 20px;
}
.mwb-custom-order-issue-instruct-step-image img {
  max-width: 100%;
  height: auto;
}

/* Arrow rotation CSS - Only for accordion headers */
.mwb-custom-accordion-buttons .selector-icon {
  transition: transform 0.3s ease;
  display: inline-block;
}

.mwb-custom-accordion-buttons .selector-icon.rotated {
  transform: rotate(180deg);
}

.mwb-custom-active .mwb-custom-accordion-buttons .selector-icon {
  transform: rotate(180deg);
}

/* Keep dropdown arrows unchanged */
.mwb-custom-select__selected .selector-icon {
  transition: transform 0.3s ease;
  display: inline-block;
}

/* Loading spinner styles */
.mwb-loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin: 20px 0;
}

.mwb-loading-spinner .spinner {
  position: relative;
  left: 20px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ff0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

.mwb-loading-spinner p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.submit-status {
  display: flex;
  height: 431px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.submit-status .loading-msg {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: center;
  justify-content: center;
  align-items: center;
}
.submit-status .loading-msg h3,
.submit-status .loading-msg p {
  padding: 0;
  margin: 0;
}
.submit-status .report-success-msg {
  display: none;
  text-align: center;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media screen and (max-width: 1199px) {
  .mwb-custom-order-issue-instruct-col {
    max-width: calc(50% - 12px);
  }

  .mwb-custom-report-order-steps-container {
    grid-template-columns: 1fr;
  }

  .mwb-custom-report-order-header-tabs {
    flex-wrap: wrap;
  }

  .mwb-custom-report-order-header-tab {
    font-size: 12px;
    padding: 5px;
  }

  .mwb-custom-report-order-main-content {
    padding: 20px;
  }

  .mwb-custom-report-order-step-card {
    min-height: auto;
  }
}

@media screen and (max-width: 580px) {
  .mwb-custom-order-issue-instruct-row {
    justify-content: center;
  }
  .mwb-custom-order-issue-instruct-col {
    max-width: 100%;
  }
}
