﻿@import url("open-iconic/font/css/open-iconic-bootstrap.min.css");

/* CSS Variables */
:root {
  --spacing-8: 0.5rem;
  --spacing-16: 1rem;
  --spacing-24: 1.5rem;
  --spacing-32: 2rem;
  --spacing-40: 2.5rem;
  --spacing-48: 3rem;
  --spacing-56: 3.5rem;
  --spacing-64: 4rem;
  --spacing-72: 4.5rem;
  --spacing-80: 5rem;

  --color-primary: #333333;
  --color-secondary: #f2f2f2;
  --color-border: #d9d9d9;
  --color-error: #b32121;
  --color-success: #26b050;
}

/* Global Styles */
html,
body {
  font-family: "TSTAR", sans-serif;
  height: 100%;
}

h1:focus {
  outline: none;
}

a,
.btn-link {
  color: #0071c1;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Forms & Validation */
.valid.modified:not([type="checkbox"]) {
  outline: 1px solid var(--color-success);
}

.invalid {
  outline: 1px solid red;
}

.validation-message {
  color: red;
}

/* Error Handling */
#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

/* Order Information */
.rws-order-information,
.rws-order-information-section {
  width: 100%;
}

.rws-order-information-title {
  font-family: "MFred", sans-serif;
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 2.25rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-24);
}

.rws-order-information-sub-section {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  font-size: 0.875rem;
}

.rws-order-information-sub-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--spacing-24);
}

.rws-order-information-sub-section-header-title {
  font-family: "MFred", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: var(--spacing-24);
  text-transform: uppercase;
  color: var(--color-primary);
  background-color: var(--color-secondary);
}

.rws-order-information-sub-section-details {
  background-color: var(--color-secondary);
  display: flex;
  flex-direction: column;
  padding: var(--spacing-24) 0;
}

#right-column:not(:empty) {
  background-color: #fff; /* Change color when it has content */
}

/* Headers */

.items-header-label {
  font-family: 'MFred',sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Buttons */

.rws-button-frame {
  display: flex;
  width: 100%;
}

.rws-button {
  width: 100%;
  height: 2.75rem;
  padding: 0.875rem 0 0.75rem;
  background-color: #c8102e;
  color: #ffffff;
  font-weight: 900;
  text-align: center;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.rws-button-text {
  letter-spacing: 0.96px;
}

.rws-button-text-disabled {
  color: #a6a6a6;
}

.rws-back-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #333;
  text-decoration: underline
}

.rws-back-button::before {
  content: "";
  display: inline-block;
  width: 25px;
  height: 27px;
  background-image: url("/_content/RWS.Blazor.Components/images/arrow-back.png");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Modals */

.modal-container {
  background: #ffffff;
  border-radius: 0.25rem;
  border-style: solid;
  border-color: #d9d9d9;
  border-width: 1px;
  padding: 2.25rem 1.875rem 1.125rem 1.875rem;
  display: flex;
  flex-direction: column;
  gap: 1.875rem;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.rws-alert-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: stretch;
    flex-shrink: 0;
    position: relative;
}

.rws-alert-header {
    color: #000000;
    text-align: left;
    font-size: 1.25rem;
    line-height: 1.5rem;
    font-weight: 900;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.rws-alert-message {
    color: #000000;
    text-align: left;
    font-weight: 500;
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-style: normal;
}

.rws-alert-icon {
  font-size: 1.875rem;
  color: #c8102e
}

.rws-alert-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  align-items: center;
}

.rws-alert-button-container-primary {
  width: 100%;
}

button.rws-alert-button-primary {
  width: 100%;
  border: none;
  padding: .75rem;
  background: #c8102e;
}

span.rws-alert-button-primary-text {
  letter-spacing: 0.94px;
  font-weight: 900;
  color: #ffffff;
}

button.rws-alert-button-secondary {
  border: none;
  background: #fff;
  border-bottom: .125rem solid #c8102e;
  padding: 0 0 .25rem 0;
}

span.rws-alert-button-secondary-text {
  font-weight: 900;
  letter-spacing: 0.94px;
}

.rws-button-goback-container {
  border-radius: 0.25rem;
  display: flex;
  flex-direction: row;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
  height: 3.125rem;
  padding: 0.75rem 1.875rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.rws-fulfill-button {
  width: 100%;
  height: 44px;
  padding: 12px 30px;
  background-color: white;
  color: black;
  font-family: 'TSTAR', sans-serif;
  font-weight: 900;
  font-size: 16px;
  line-height: 18px;
  text-align: center;
  border: none;
}

.rws-fulfill-button-text {
  text-transform: uppercase;
  padding-bottom: 6px;
  letter-spacing: 0.96px;
}

.rws-button-frame {
  width: 100%;
  height: 44px;
  gap: 15px;
  display: flex;
}

.rws-fulfill-button-frame {
  width: 100%;
  height: 44px;
  gap: 15px;
  display: flex;
  margin-top: 1.5rem;
}

/* Search & Transactions */

.sar-title {
  font-family: "MFred", sans-serif;
  font-size: 2.25rem;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.sar-text-primary {
  font-size: 0.875rem;
  font-style: italic;
  margin-bottom: 3rem;
}

/* Search Bar */
.sar-search-frame {
  display: flex;
  height: 50px;
  margin-bottom: 2.1875rem;
}


.sar-search-frame .rws-search-bar {
  width: 21rem;
  height: 100%;
  background-color: #ffffff;
  font-size: 0.875rem;
}

.sar-search-button-frame {
  background-color: #c8102e;
  border-radius: 4px;
  margin-left: 1.5rem;
}

.sar-search-button-frame button {
  padding: 0.75rem 1.875rem;
  background-color: transparent;
  color: #ffffff;
  font-weight: 900;
  text-transform: uppercase;
  border: none;
}

/* Order Details */
.order-details-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-16);
}

.fulfilled {
  color: #008300;
}

.returned .canceled {
  color: #c0102e;
}

/* Divider Styles */
.divider-inner {
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
  margin: var(--spacing-16) 0;
}

/* Loading Spinner */
.loading-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.loading-dots div {
  display: block;
  width: 10px;
  height: 10px;
  margin: 5px;
  border-radius: 50%;
  background-color: #ff0000;
  animation: dot-flashing 1s infinite linear alternate;
}

.loading-dots div:nth-child(1) {
  animation-delay: 0s;
}

.loading-dots div:nth-child(2) {
  animation-delay: 0.5s;
}

.loading-dots div:nth-child(3) {
  animation-delay: 1s;
}

@keyframes dot-flashing {
  0% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.2;
  }
}

/* Completed Transactions */
.ct-page {
  display: flex;
  flex-direction: column;
}

.ct-transaction-frame {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
}

.ct-transaction-title {
  font-family: "MFred", sans-serif;
  font-weight: 400;
  font-size: 2.25rem;
  color: var(--color-primary);
  line-height: 1;
  margin-top: -0.6875rem;
}

.ct-ol-dropdown-frame {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #a6a6a6;
}

.ct-ol-dropdown-inner-frame {
  display: flex;
  align-items: center;
  position: relative;
  width: 12.25rem;
}

.ct-ol-dropdown {
  width: 100%;
  padding: 0.3875rem 1rem 0.25rem;
  font-family: inherit;
  border: none;
  appearance: none;
  background-color: #ffffff;
  background-image: url("../images/collapse_Icon.png");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.ct-ol-dropdown:focus {
  border-color: #000;
  outline: none;
}

.ct-slider-frame {
  display: flex;
}

.ct-slider-tab {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: lightgray;
}

.ct-slider-tab-text {
  font-family: "TSTAR", sans-serif;
  font-weight: 900;
  padding: 0.75rem;
}

.ct-slider-tab.selected {
  background-color: #515356;
  color: #ffffff;
  box-shadow: none;
  border-radius: 0.25rem;
}

@font-face {
  font-family: "TSTAR";
  src: url("/fonts/TSTAR-HeavyWeb.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TSTAR";
  src: url("/fonts/TSTAR-MediumWeb.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MFred";
  src: url("/fonts/MFred.woff") format("woff"),
    url("/fonts/MFred.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Utility Styles */
.underline-red {
  border-bottom: 2px solid rgba(200, 16, 46, 1);
}

/* Modal Overlay */
.overlay {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.overlay.active {
  display: block;
  z-index: 100;
}

.check-circle {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  position: relative;
  overflow: visible;
}
