/**
Theme Name: Feathers and Scales Freight
Author: Forte Marketing
Author URI: https://fortemarketing.com.au
Description: Feathers and Scales Freight theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fas
Template: astra
*/

#home-carousel .uabb-image-carousel-content {
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Acknowledgements
   -------------------------------------------------------------------------- */
.crate-notice {
  border: 2px solid var(--ast-global-color-6);
  border-radius: 10px;
  overflow: hidden;
  margin-block: 24px;
  background: var(--ast-global-color-4);
}

.crate-notice__images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.crate-notice__images img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.crate-notice__content {
  padding: 24px 28px;
  text-align: center;
}

.crate-notice__icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.crate-notice__heading {
  color: var(--ast-global-color-2);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.crate-notice__text {
  color: var(--ast-global-color-3);
  line-height: 1.7;
  margin: 0;
  max-width: 560px;
  margin-inline: auto;
}

.crate-notice__text strong {
  color: var(--ast-global-color-2);
}

@media (max-width: 544px) {
  .crate-notice__content {
    padding: 14px 18px;
  }

  .crate-notice__images {
    grid-template-columns: 1fr;
  }

  #first-image,
  #third-image {
    display: none;
  }
}
/* --------------------------------------------------------------------------
   Crate References
   -------------------------------------------------------------------------- */
.crate-reference-wrapper {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.crate-reference-item {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.crate-reference-item img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.crate-reference-item--reject img {
  border: 3px solid #e53e3e;
}

.crate-reference-item--approve img {
  border: 3px solid #38a169;
}

/* Badge */
.crate-reference-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crate-reference-badge svg {
  width: 20px;
  height: 20px;
}

.crate-reference-item--reject .crate-reference-badge {
  background: #e53e3e;
  color: #fff;
}

.crate-reference-item--approve .crate-reference-badge {
  background: #38a169;
  color: #fff;
}

/* Label */
.crate-reference-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.crate-reference-item--reject .crate-reference-label {
  color: #e53e3e;
}

.crate-reference-item--approve .crate-reference-label {
  color: #38a169;
}

/* --------------------------------------------------------------------------
   Crate Details Popup
   -------------------------------------------------------------------------- */
.crate-table-wrap {
  width: 100%;
}

.crate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0;
}

.crate-table thead tr {
  background: var(--ast-global-color-2);
  color: var(--ast-global-color-5);
}

.crate-table th {
  padding: 12px 14px;
  text-align: center;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid var(--ast-global-color-2);
}

.crate-table td {
  padding: 10px 14px;
  text-align: center;
  border: 1px solid var(--ast-global-color-6);
  color: var(--ast-global-color-3);
}

.crate-table tbody tr:nth-child(even) {
  background: var(--ast-global-color-4);
}

.crate-table tbody tr:hover {
  background: var(--ast-global-color-6);
}

.crate-table-notes {
  padding: 16px 20px;
  background: var(--ast-global-color-4);
  font-size: 0.875rem;
  color: var(--ast-global-color-3);
  line-height: 1.7;
  text-align: left;
}

.crate-table-notes p {
  margin: 0 0 10px !important;
}

.crate-table-notes p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .crate-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   Crate Details Message / CTA
   -------------------------------------------------------------------------- */
.crate-details-message {
  width: fit-content;
  padding: 0.5rem 1rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.875rem;
  line-height: 1.5;
}
