/* Frontend styles for CDW Pro - final per requirements */
.cdw-dropdown-wrapper {
  max-width: 100%;
}

.cdw-dropdown.close::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: #D0D0D7;
  margin-top: 8px;
}

.cdw-dropdown.close {
  background: #ffffff;
  position: relative;
}

.cdw-dropdown {
  overflow: visible;
  transition: background .18s ease, border-color .18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.cdw-header {
  width: 100% !important;
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  text-align: right !important;
  border-radius: 16px !important;
  color: #121212 !important;
}

.cdw-title {
  font-weight: 700;
  flex: 1 1 auto;
  white-space: normal;
  word-break: break-word;
}

.cdw-icon {
  /* display: inline-flex; */
  transition: transform .18s ease;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.cdw-dropdown.open {
  border-radius: 16px;
  background: #F7F8FE;
  border: 1px solid #E1E1E1;
  /* border-color: #E1E1E1; */
}

.cdw-dropdown.open .cdw-icon {
  transform: rotate(180deg);
}

/* items container */
.cdw-items {
  display: none;
}

.cdw-dropdown.open .cdw-items {
  display: block;
}

/* each item */
.cdw-item {
  margin-bottom: 10px;
}

.cdw-item-inner {
  padding: 0px;
}

/* plain text */
.cdw-plain p {
  margin: 16px;
}

/* full-width box description */
.cdw-box-full .cdw-box-desc {
  width: 100%;
  background: #EFF0F6;
  padding: 12px;
  border-radius: 16px;
  box-sizing: border-box;
}

.cdw-box-full {
  margin: 16px;
}

/* key-value list */
.cdw-keyvalue {
  border-radius: 8px;
  overflow: hidden;
}

.cdw-row {
  display: flex;
  justify-content: start;
  padding: 8px 16px 8px 16px;
  border-top: 1px solid #E1E1E1;
}

.cdw-key::after {
  content: ":";
  margin-inline-end: 8px;
}

.cdw-row.alt {
  background: #EFF0F6;
}

/* small RTL */
.cdw-dropdown,
.cdw-header,
.cdw-items {
  direction: rtl;
  font-family: inherit;
}