.teamwantreturn-buttons {
  margin-top: 20px;
}

body#module-teamwantreturn-ReturnPage #wrapper > .container {
  margin-top: 50px;
  padding-top: 0 !important;
}

.twr-return-card {
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  overflow: hidden;
}

.twr-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: #f8f8f8;
  border-bottom: 1px solid #dcdcdc;
}

.twr-header-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
  border-radius: 4px;
  color: #fff;
}

.twr-header-text h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.twr-header-text p {
  margin: 0;
  font-size: 13px;
  color: #777;
}

.twr-card-actions {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  flex-wrap: wrap;
}

.twr-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #333;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  color: #333;
  position: relative;
}

.twr-action-btn:hover {
  background: #333;
  color: #fff;
}

.twr-action-btn:hover .twr-btn-icon {
  color: #fff;
}

.twr-return-btn {
  border-color: #333;
  color: #333;
}

.twr-return-btn:hover {
  background: #333;
}

.twr-complaint-btn {
  border-color: #f39c12;
  color: #f39c12;
}

.twr-complaint-btn:hover {
  background: #f39c12;
  color: #fff;
}

.twr-cancel-btn {
  border-color: #d9534f;
  color: #d9534f;
}

.twr-cancel-btn:hover {
  background: #d9534f;
  color: #fff;
}

.twr-btn-icon {
  display: flex;
  align-items: center;
  color: inherit;
}

.twr-returns-list-card {
  margin-top: 20px;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  overflow: hidden;
}

.twr-list-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: #f8f8f8;
  border-bottom: 1px solid #dcdcdc;
}

.twr-list-header svg {
  color: #333;
}

.twr-list-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.twr-list-body {
  padding: 0;
}

.twr-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.twr-table thead {
  background: #f8f8f8;
}

.twr-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #777;
  border-bottom: 1px solid #dcdcdc;
}

.twr-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #eee;
}

.twr-table tbody tr:last-child td {
  border-bottom: none;
}

.twr-table tbody tr:hover {
  background: #fafafa;
}

.twr-id {
  font-weight: 600;
  color: #333;
}

.twr-type-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.twr-type-return {
  background: #e8f4fd;
  color: #2c5e77;
}

.twr-type-complaint {
  background: #fef5e7;
  color: #9a7d0a;
}

.twr-type-cancel {
  background: #fdebe9;
  color: #a83232;
}

.twr-status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #333;
}

.twr-status-wait {
  background: #d6eaf8;
  color: #1f618d !important;
}

.twr-status-confirmed {
  background: #d5f5e3;
  color: #1e8449 !important;
}

.twr-status-rejected {
  background: #fadbd8;
  color: #c0392b !important;
}

.twr-date {
  color: #777;
  font-size: 13px;
}

.twr-return-address-footer {
  padding: 16px 20px;
  border-top: 1px solid #eee;
  background: #fdfdfd;
}

.twr-return-address-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
}

.twr-address-info-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: #333;
}

.twr-address-info-content {
  font-size: 13px;
  line-height: 1.6;
  color: #555;
}

.twr-address-info-content strong {
  color: #333;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.twr-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #333;
  border-bottom: none;
}

.twr-modal-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.twr-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #fff;
}

.twr-modal-header .modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.twr-modal-header .close {
  color: #fff;
  opacity: 0.8;
  font-size: 24px;
  margin-left: 0;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  order: -1;
}

.twr-modal-header .close:hover {
  opacity: 1;
}

.twr-modal-body {
  padding: 20px;
}

.twr-alert-info {
  background: #e8f4fd;
  border: 1px solid #b3d7f2;
  color: #2c5e77;
  padding: 12px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.twr-alert-warning {
  background: #fef5e7;
  border: 1px solid #fad7a0;
  color: #9a7d0a;
  padding: 12px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.twr-products-list {
  margin-bottom: 20px;
}

.twr-products-list .table {
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  overflow: hidden;
  margin: 0;
}

.twr-products-list .table thead {
  background: #f8f8f8;
}

.twr-products-list .table th {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #777;
  border-bottom: 1px solid #dcdcdc;
}

.twr-products-list .table td {
  padding: 10px 14px;
  font-size: 13px;
  vertical-align: middle;
}

.twr-products-list .table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.twr-products-list .table select {
  padding: 5px 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 13px;
}

.twr-form-group {
  margin-bottom: 16px;
}

.twr-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.twr-select,
.twr-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.twr-select:focus,
.twr-textarea:focus {
  outline: none;
  border-color: #333;
  box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.1);
}

.twr-textarea {
  resize: vertical;
  min-height: 80px;
}

.twr-file-upload .twr-file-input-wrapper {
  position: relative;
}

.twr-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.twr-file-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  border: 2px dashed #ccc;
  border-radius: 4px;
  background: #fafafa;
  color: #777;
  transition: all 0.2s;
}

.twr-file-dropzone svg {
  color: #999;
}

.twr-file-dropzone span {
  font-size: 13px;
}

.twr-file-input-wrapper:hover .twr-file-dropzone {
  border-color: #333;
  background: #f5f5f5;
}

.twr-file-input-wrapper:hover .twr-file-dropzone svg {
  color: #333;
}

.twr-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #999;
}

.twr-return-address {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #f8f8f8;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  margin-top: 16px;
}

.twr-address-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
  border-radius: 4px;
  color: #fff;
}

.twr-address-content {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.twr-modal-footer {
  padding: 16px 20px;
  background: #f8f8f8;
  border-top: 1px solid #dcdcdc;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.twr-btn-cancel {
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #ccc;
  color: #333;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.twr-btn-cancel:hover {
  background: #f5f5f5;
  border-color: #999;
}

.twr-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #333;
  border: 1px solid #333;
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.twr-btn-submit:hover {
  background: #444;
  border-color: #444;
}

.twr-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.twr-btn-expired {
  opacity: 0.7;
  cursor: not-allowed;
  position: relative;
}

.twr-btn-expired:hover {
  background: #fff !important;
  color: inherit !important;
  border-color: inherit !important;
}

.twr-btn-expired:hover .twr-btn-icon {
  color: inherit !important;
}

.twr-btn-expired .twr-btn-icon {
  color: inherit;
}

.twr-btn-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  padding: 8px 14px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  line-height: 1.4;
}

.twr-btn-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: #333;
}

.twr-btn-expired:hover .twr-btn-tooltip {
  display: block;
}

.icon-spin {
  animation: twr-spin 1s linear infinite;
}

@keyframes twr-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .twr-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .twr-card-actions {
    flex-direction: column;
  }

  .twr-action-btn {
    width: 100%;
    justify-content: center;
  }

  .twr-table {
    display: block;
    overflow-x: auto;
  }

  .twr-modal-dialog {
    margin: 10px;
  }
}

.twr-no-options-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
}

.twr-no-options-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #777;
  border-radius: 4px;
  color: #fff;
}

.twr-no-options-text h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.twr-no-options-text p {
  margin: 0;
  font-size: 13px;
  color: #777;
}

.twr-success-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.twr-success-icon {
  margin-bottom: 0;
  text-align: center;
}

.twr-success-message {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin: 12px 0;
  text-align: center;
}

.twr-success-address {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #f8f8f8;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  margin-top: 16px;
  width: 100%;
}

.twr-success-address .twr-address-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333;
  border-radius: 4px;
  color: #fff;
}

.twr-success-address .twr-address-icon svg {
  width: 14px;
  height: 14px;
}

.twr-success-address .twr-address-content {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.twr-success-address .twr-address-content strong {
  display: inline;
  margin-right: 4px;
}

.twr-success-address .twr-address-content span {
  display: inline;
}
/* Conversation / Messages */
.twr-messages-row {
  background: #fdfdfd;
}

.twr-messages-container {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.twr-messages-title {
  margin: 0 0 12px 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: #777;
  letter-spacing: 0.5px;
}

.twr-messages-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.twr-message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.twr-message-customer {
  align-self: flex-end;
  background: #333;
  color: #fff;
  border-bottom-right-radius: 2px;
}

.twr-message-employee {
  align-self: flex-start;
  background: #f1f1f1;
  color: #333;
  border-bottom-left-radius: 2px;
}

.twr-message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 11px;
  opacity: 0.8;
}

.twr-message-author {
  font-weight: 600;
}

.twr-message-content {
  word-break: break-word;
}

.twr-message-form {
  margin-top: 16px;
}

.twr-message-input-wrapper {
  display: flex;
  gap: 10px;
}

.twr-message-input {
  flex-grow: 1;
  min-height: 40px;
  max-height: 120px;
  padding: 10px 14px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.2s;
}

.twr-message-input:focus {
  outline: none;
  border-color: #333;
}

.twr-message-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.twr-message-submit:hover {
  background: #000;
}

.twr-no-messages {
  margin: 0;
  font-size: 13px;
  color: #999;
  font-style: italic;
  text-align: center;
  padding: 10px 0;
}

/* Details View */
.twr-details-row {
  background: #fdfdfd;
}

.twr-details-container {
  padding: 20px;
}

.twr-details-title {
  margin: 0 0 12px 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: #777;
  letter-spacing: 0.5px;
}

.twr-toggle-details {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
}

.twr-toggle-details:hover {
  background: #f8f8f8;
  border-color: #333;
}

.twr-icon-arrow {
  transition: transform 0.2s;
}

.twr-products-summary .table {
  margin-bottom: 0;
  background: #fff;
  border: 1px solid #eee;
}

.twr-products-summary .table th {
  background: #fcfcfc;
  border-bottom: 1px solid #eee;
}

.twr-non-returnable {
  opacity: 0.6;
  background: #f9f9f9 !important;
}

.twr-non-returnable:hover {
  opacity: 0.6;
  background: #f9f9f9 !important;
}

.twr-personalized-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #dc3545;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 3px;
  padding: 1px 6px;
  margin-left: 6px;
  white-space: nowrap;
}

.twr-category-excluded-badge {
  color: #856404 !important;
  background: #fff3cd !important;
  border-color: #ffeeba !important;
}

.twr-virtual-excluded-badge {
  color: #17a2b8 !important;
  background: #e1f5fe !important;
  border-color: #b3e5fc !important;
}

/* Withdrawal Info Box */
.twr-withdrawal-box {
  position: relative !important;
  padding: 28px 32px !important;
  border-radius: 16px !important;
  margin-bottom: 1rem !important;
  overflow: hidden !important;
}

.twr-withdrawal-box::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 6px !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.15) !important;
}

.twr-withdrawal-icon {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.3) !important;
  opacity: 0.6 !important;
}

.twr-withdrawal-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  position: relative !important;
  z-index: 1 !important;
}

.twr-withdrawal-text {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  font-weight: 500 !important;
  text-align: center !important;
  padding: 1rem !important;
}

.twr-withdrawal-actions {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  margin-bottom: 1rem !important;
}

.twr-withdrawal-actions .twr-withdrawal-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.twr-withdrawal-actions .twr-withdrawal-btn:hover {
  text-decoration: none !important;
  transform: translateY(-1px) !important;
  box-shadow: none !important;
}

/* Style variants */
.twr-withdrawal-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%) !important;
  border: 1px solid #ffc107 !important;
  color: #856404 !important;
  margin-bottom: 1rem;
}

.twr-withdrawal-warning p {
  color: #856404 !important;
}

.twr-withdrawal-warning::before {
  background: #ffc107 !important;
}

.twr-withdrawal-warning .twr-withdrawal-actions .twr-withdrawal-btn {
  background: #ffc107 !important;
  color: #212529 !important;
}

.twr-withdrawal-warning .twr-withdrawal-actions .twr-withdrawal-btn:hover {
  background: #e0a800 !important;
  color: #212529 !important;
}

.twr-withdrawal-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%) !important;
  border: 1px solid #0dcaf0 !important;
  color: #0c5460 !important;
  margin-bottom: 1rem;
}

.twr-withdrawal-info p {
  color: #0c5460 !important;
}

.twr-withdrawal-info::before {
  background: #0dcaf0 !important;
}

.twr-withdrawal-info .twr-withdrawal-actions .twr-withdrawal-btn {
  background: #0dcaf0 !important;
  color: #000 !important;
}

.twr-withdrawal-info .twr-withdrawal-actions .twr-withdrawal-btn:hover {
  background: #0aa2c0 !important;
  color: #000 !important;
}

.twr-withdrawal-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%) !important;
  border: 1px solid #dc3545 !important;
  color: #721c24 !important;
  margin-bottom: 1rem;
}

.twr-withdrawal-danger p {
  color: #721c24 !important;
}

.twr-withdrawal-danger::before {
  background: #dc3545 !important;
}

.twr-withdrawal-danger .twr-withdrawal-actions .twr-withdrawal-btn {
  background: #dc3545 !important;
  color: #fff !important;
}

.twr-withdrawal-danger .twr-withdrawal-actions .twr-withdrawal-btn:hover {
  background: #c82333 !important;
  color: #fff !important;
}

.twr-withdrawal-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
  border: 1px solid #28a745 !important;
  color: #155724 !important;
  margin-bottom: 1rem;
}

.twr-withdrawal-success p {
  color: #155724 !important;
}

.twr-withdrawal-success::before {
  background: #28a745 !important;
}

.twr-withdrawal-success .twr-withdrawal-actions .twr-withdrawal-btn {
  background: #28a745 !important;
  color: #fff !important;
}

.twr-withdrawal-success .twr-withdrawal-actions .twr-withdrawal-btn:hover {
  background: #218838 !important;
  color: #fff !important;
}

/* Custom button styles */
.twr-withdrawal-custom {
  border-width: 1px !important;
  border-style: solid !important;
  margin-bottom: 1rem;
}

.twr-withdrawal-custom::before {
  opacity: 0.8 !important;
}

.twr-withdrawal-custom .twr-withdrawal-actions .twr-withdrawal-btn {
  background: rgba(0, 0, 0, 0.15) !important;
  color: inherit !important;
}

.twr-withdrawal-custom .twr-withdrawal-actions .twr-withdrawal-btn:hover {
  background: rgba(0, 0, 0, 0.25) !important;
  color: inherit !important;
}

.twr-download-pdf-btn {
  background-color: #f8f9fa !important;
  color: #333333 !important;
  border: 1px solid #cccccc !important;
}

.twr-download-pdf-btn:hover {
  background-color: #e2e6ea !important;
  color: #111111 !important;
  border-color: #dae0e5 !important;
}
