/** Shopify CDN: Minification failed

Line 2026:0 Unexpected "}"

**/
/* Figma-Exact Course Materials Styling */

/* Student ID Mode - Hide course selection when using Student ID */
.student-id-mode .course-name-section {
  display: none !important;
}

:root {
  /* Color Tokens - Using Theme Variables */
  --color-primary: var(--color-foreground);
  --color-bg-primary: var(--color-background);
  --color-bg-secondary: rgb(var(--color-foreground-rgb) / var(--opacity-5));
  --color-border: var(--color-border);
  --color-input-border: var(--color-input-border);
  --color-disabled: var(--input-disabled-text-color);
  --color-disabled-bg: var(--input-disabled-background-color);

  /* Typography Tokens */
  --font-family-primary: var(--font-body--family);
  --font-family-condensed: var(--font-heading--family);
  --font-family-light: var(--font-body--family);
  --font-size-title: var(--font-size--h1);
  --line-height-title: var(--line-height--heading-tight);
  --font-size-subtitle: var(--font-size--xl);
  --line-height-subtitle: var(--line-height--body-normal);
  --font-size-section-title: var(--font-size--xl);
  --line-height-section-title: var(--line-height--body-normal);
  --font-size-body: var(--font-size--md);
  --line-height-body: var(--line-height--body-normal);
  --font-size-label: var(--font-size--sm);
  --line-height-label: var(--line-height--body-normal);
  --font-size-chip: var(--font-size--md);
  --line-height-chip: var(--line-height--body-loose);

  /* Spacing Tokens - Using Theme Variables */
  --space-xs: var(--gap-xs);
  --space-sm: var(--gap-lg);
  --space-md: var(--gap-2xl);
  --space-lg: var(--gap-3xl);
  --space-xl: var(--margin-6xl);

  /* Layout Tokens */
  --layout-max-width: 1440px;
  --panel-left-width: 477px;
  --panel-right-width: 963px;
  --panel-left-padding: 34px 32px 64px 32px;
  --panel-right-padding: 64px 32px 48px 20px;

  /* Border Radius - Using Theme Variables */
  --radius-sm: var(--style-border-radius-inputs);
  --radius-md: var(--style-border-radius-sm);
  --radius-lg: var(--style-border-radius-lg);

  /* Course Section Design System */
  --section-max-width: 1200px;
  --section-gap: 32px;
  --section-internal-gap: 8px;
  --content-gap: 24px;
  --material-gap: 20px;
  --info-gap: 16px;
  --header-height: 120px;
  --content-height: 76px;
  --department-height: 28px;
  --border-radius-large: 24px;
  --material-padding-top: 40px;

  /* Course Section Colors */
  --color-text-secondary: rgb(82, 83, 83);
  --color-bg-card: rgb(210, 210, 210);
  --color-bg-content: rgb(255, 255, 255);
  --color-border-card: rgb(210, 210, 210);
  --color-text-dark: rgb(8, 9, 9);

  /* Course Typography */
  --font-size-course-title: 32px;
  --line-height-course-title: 40px;
  --font-size-section-info: 20px;
  --line-height-section-info: 36px;
  --font-size-remove-btn: 16px;
  --line-height-remove-btn: 22px;
  --font-size-required: 20px;
  --line-height-required: 36px;
}

.course-materials-container {
  font-family: var(--font-family-primary);
  background-color: var(--color-bg-primary);
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  border-top: 1px solid #E3E3E3;
}

/* Breadcrumb Navigation */
.breadcrumb-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 20px 0 32px;
  background-color: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  font-family: 'Roboto', sans-serif;
}

.breadcrumb-link {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0%;
  vertical-align: middle;
  text-decoration: none;
  border-bottom: 1px solid #204a65;
  text-decoration-thickness: 0%;
  color: #204A65;
}

.breadcrumb-separator {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #080909;
}

.breadcrumb-current {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #080909;
}

.toggle-filters {
  display: none;
  justify-content: flex-start;
  width: 100%;
  max-width: 1440px;
  padding: 0 32px;
  margin-bottom: var(--space-xs);
}

.open-btn,
.close-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  font-size: var(--font-size-body);
  padding: 0;
  font-family: var(--font-family-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.open-text,
.close-text {
  text-decoration: underline;
}

.chevron-icon {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

.open-btn:hover,
.close-btn:hover {
  opacity: 0.8;
}

.close-panel-section {
  display: none;
}

.course-materials {
  display: flex;
  flex-direction: row;
  flex: 1;
  width: 100%;
  min-height: calc(100vh - 136px);
}

.filters-panel {
  display: block;
  width: var(--panel-left-width);
  background-color: var(--color-bg-primary);
  padding: var(--panel-left-padding);
  min-height: calc(100vh - 136px);
  overflow-y: auto;
  flex-shrink: 0;
  z-index: 5; /* Ensure sidebar stays above cart bar */
  position: relative;
}

.filters-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filters-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.filters-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 28px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #101010;
  margin: 0;
}

.filters-subtitle {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0%;
  color: #525252;
  margin: 0;
}

.section-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #101010;
  margin: 0 0 var(--space-sm) 0;
}

.course-details-section {
  display: flex;
  flex-direction: column;
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(240, 240, 240);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0px 4px 12px 0px #0000001A;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.course-name-section,
.student-id-section {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid rgb(240, 240, 240);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0px 4px 12px 0px #0000001A;
  width: 100%;
  box-sizing: border-box;
}

/* Student ID Section specific styles */
.student-id-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.student-icon {
  flex-shrink: 0;
}

.student-id-text {
  font-family: Roboto;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  leading-trim: NONE;
  line-height: 150%;
  letter-spacing: 0;
  vertical-align: middle;  
  color: #101010;
}

.student-id-input-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.student-id-input-wrapper {
  /* Remove flex: 1 to allow fixed width */
}

.student-id-input-row .form-input-plain {
  margin: 0;
  width: 283px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid #727373;
  padding: 10px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #101010;
  background-color: #ffffff;
  box-sizing: border-box;
}

.student-id-input-row .form-input-plain::placeholder {
  color: #6b6b6b;
}

.student-id-input-row .btn-primary {
  width: 86px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid #204A65;
  padding: 10px 16px;
  gap: 6px;
  opacity: 1;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 2%;
  text-transform: uppercase;
  color: #204A65;
  background-color: #ffffff;
  box-sizing: border-box;
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  box-sizing: border-box;
}

.form-group-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
  width: 100%;
}

/* Floating Label Container */
.floating-label-container {
  position: relative;
}

/* Floating Label Select */
.form-select.floating-label {
  width: 184.5px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid #204A65;
  padding: 8px 32px 8px 10px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 2%;
  color: #393a3a;
  background-color: #ffffff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 16px;
}

/* Floating Label Text */
.floating-label-text {
  position: absolute;
  top: -8px;
  left: 8px;
  background-color: #ffffff;
  padding: 0 4px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0%;
  color: #204A65;
  pointer-events: none;
  z-index: 1;
}

.form-select.floating-label:focus {
  outline: none;
  border-color: #204A65;
  box-shadow: 0 0 0 1px #204A65;
}

.form-select.floating-label option {
  color: #204A65;
}

.form-group-row .form-group {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #101010;
  margin-bottom: 8px;
}

.form-select {
  width: 100%;
  height: 48px;
  padding: 8px 40px 8px 16px; /* Increased right padding for dropdown arrow */
  border: 1px solid #737373;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  background-color: #ffffff;
  color: #111827;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18"><path fill="%236b7280" d="M4.5 6.75L9 11.25L13.5 6.75" stroke="%236b7280" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  cursor: pointer;
  box-sizing: border-box;
  /* Text overflow handling */
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.form-select:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--color-primary),
    0 0 0 2px rgba(0, 122, 255, 0.2);
}

.form-select:disabled {
  background-color: #f9fafb;
  color: #9ca3af;
  border: 1px solid #e5e7eb;
}

.form-select:focus {
  outline: none;
  border-color: #007aff;
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

/* Campus and Term Selected State - Card Style */
.campus-term-selected {
  display: none;
  width: 100%;
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(208, 208, 208);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 0;
  box-sizing: border-box;
  padding: 0;
  border: none;
}

.campus-term-selected.show {
  display: block;
}

.campus-term-selected-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.campus-term-selected-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.campus-term-section-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  text-transform: uppercase;
  color: #101010;
  margin: 0;
}

.campus-term-selected-title {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #101010;
  line-height: 24px;
}

.campus-term-selected-right {
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
  position: absolute;
  right: 8px;
  top: 8px;
}

.edit-campus-term-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-campus-term-btn .edit-icon {
  width: 18px;
  height: 18px;
  filter: invert(42%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(95%)
    contrast(89%);
  opacity: 1;
}

.course-dropdowns {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
  width: 100%;
}

.course-dropdowns .form-group,
.course-dropdowns .form-group-plain {
  width: 100%;
}

.form-group-plain {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

.form-select-plain {
  width: 100%;
  height: 40px;
  border-radius: 4px;
  border: 1px solid #204A65;
  padding: 8px 32px 8px 10px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 2%;
  color: #393a3a;
  background-color: #ffffff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  box-sizing: border-box;
  /* Text overflow handling */
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.form-input-plain {
  flex: 1;
  height: 48px;
  padding: 8px 8px;
  border: 1px solid rgb(165, 165, 165);
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font-family-primary);
  background-color: rgb(255, 255, 255);
  color: var(--color-primary);
  appearance: none;
  box-sizing: border-box;
}

.form-select-plain:disabled {
  background-color: #f5f5f5;
  color: #999999;
  border: 1px solid #D0D0D0;
}

.form-select-plain:focus {
  outline: none;
  border-color: #204A65;
  box-shadow: 0 0 0 2px rgba(32, 74, 101, 0.2);
}

/* Plain Input Field (for text inputs like Student ID) */
.form-input-plain {
  width: 100%;
  height: 48px;
  padding: 8px 40px 8px 40px;
  border: 1px solid rgb(165, 165, 165);
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--font-family-primary);
  background-color: rgb(255, 255, 255);
  color: var(--color-primary);
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  appearance: none;
  cursor: pointer;
  box-sizing: border-box;
  /* Text overflow handling */
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.form-input-plain:disabled {
  background-color: rgb(237, 237, 237);
  color: var(--color-disabled);
  border: 1px solid rgb(165, 165, 165);
}

.form-input-plain:focus {
  outline: none;
  border-color: #007aff;
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

/* Simple Select with Search Icon */
.select-with-search {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.6;
}

.form-actions-inline {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.form-actions-inline-discover {
  display: flex;
  justify-content: flex-end;
  width: 10%;
}

@media (max-width: 768px) { 
    .form-actions-inline-discover {
        width: 50%;
    }
}

.form-actions-btn-inline-discover {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.form-actions {
  flex-direction: column;
  gap: var(--space-md);
  visibility: hidden;
  display: none !important;
}

.course-materials-container .btn-primary {
  background-color: #204A65;
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  height: 40px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-style: normal;
  line-height: 100%;
  letter-spacing: 0%;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  align-self: flex-start;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  gap: 10px;
}

.discover-btn .btn-primary {
  background-color: #204A65;
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  height: 40px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-style: normal;
  line-height: 100%;
  letter-spacing: 0%;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  align-self: flex-start;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  gap: 10px;
}

.btn-primary:hover {
  background-color: #0f2a4d;
  color: #ffffff;
  border: none;
}

.btn-primary:focus-visible {
  outline: 2px solid #204A65;
  outline-offset: 2px;
}

.btn-primary:disabled {
  background-color: #d1d5db;
  color: #9ca3af;
  border: none;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: rgb(210, 210, 210);
  color: rgb(57, 58, 58);
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-body);
  font-family: var(--font-family-condensed);
  font-weight: 400;
  cursor: pointer;
  transition: var(--animation-values);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary-student {
  background-color: rgb(210, 210, 210);
  color: rgb(57, 58, 58);
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-body);
  font-family: var(--font-family-condensed);
  font-weight: 400;
  cursor: pointer;
  transition: var(--animation-values);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-secondary:disabled,
.btn-secondary.disabled {
  background-color: rgb(240, 240, 240);
  color: rgb(150, 150, 150);
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-secondary:hover:not(:disabled):not(.disabled) {
  opacity: 0.8;
}

/* Simple loading spinner */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Purchase Checkbox Styles */
.purchase-checkbox-container {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.purchase-checkbox {
  display: none;
}

.checkbox-label {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-top: 3px;
}

.checkbox-label:hover {
  border-color: #9ca3af;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.purchase-checkbox:checked + .checkbox-label {
  background: #000000;
  border-color: #000000;
}

.purchase-checkbox:checked + .checkbox-label::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

.purchase-type {
  position: relative;
  cursor: pointer;
  padding-right: 50px; /* Add space for checkbox */
  max-width: 124.33px;
}

.purchase-type:hover {
  background: #f9fafb;
}

/* Update purchase type layout for checkboxes */
.purchase-type .purchase-type-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 42px;
}

.purchase-type .purchase-price {
  margin: 0 0 4px 0;
  font-size: 24px;
  
}

/* Prevent checkbox clicks from bubbling up */
.purchase-checkbox-container {
  pointer-events: auto;
}

.purchase-checkbox-container * {
  pointer-events: auto;
}

.open-btn:focus-visible,
.close-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.link-underline:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.skip-section {
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.skip-div {
  border: 1px solid #ededed;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.skip-student-text {
  display: flex;
  align-items: center;
  padding: 10px;
}
.skip-student-field {
  padding: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.skip-student-label {
  margin-left: 8px;
}
.inputField {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  width: 77px;
  height: 20px;
}

.skip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.skip-text {
  font-size: var(--font-size-label);
  font-family: var(--font-family-primary);
  color: var(--color-primary);
  text-decoration: underline;
  cursor: pointer;
}

.chevron-down-icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.skip-text:hover {
  opacity: 0.8;
}

.course-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  visibility: hidden;
}

.skip-link {
  padding: 24px;
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  margin: 0;
}

.link-underline {
  color: var(--color-primary);
  text-decoration: underline;
  font-size: var(--font-size-label);
  font-family: var(--font-family-primary);
}

.link-underline:hover {
  opacity: 0.8;
}

/* Panel Toggle Container - Between left and right panels */
.panel-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1px;
  background-color: var(--color-border);
  position: relative;
  z-index: 10;
}

/* Panel Toggle Button - Circular button in the center of separator */
.panel-toggle-btn {
  position: absolute;
  left: 50%;
  top: 28px;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #204A65;
  border: none;
  cursor: pointer;
  display: none; /* Initially hidden */
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 11;
}

.panel-toggle-btn:hover {
  background-color: #0f2a4d;
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


.panel-toggle-icon {
  color: white;
  width: 18px;
  height: 18px;
}

.separator-line {
  display: none;
}

/* Course badges divider */
.course-badges-divider {
  height: 1px;
  background-color: rgba(var(--color-foreground-rgb) / 0.1);
  margin: 16px 0;
}

.products-section {
  flex: 1;
  width: 100%;
  padding: 34px 20px;
  background-color: #F8F8F8;
  min-height: calc(100vh - 136px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.products-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  width: 100%;
  max-width: 1440px;
  padding: 0 32px;
}

.products-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.products-title {
  font-size: var(--font-size-title);
  font-family: var(--font-family-condensed);
  font-weight: 400;
  color: var(--color-primary);
  margin: 0;
  line-height: var(--line-height-title);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.products-subtitle {
  font-size: var(--font-size-subtitle);
  font-family: var(--font-family-primary);
  font-weight: 400;
  color: var(--color-primary);
  margin: 0 0 var(--space-md) 0;
  line-height: var(--line-height-subtitle);
  text-align: center;
  max-width: 600px;
}

.no-products-message {
  display: block;
  text-align: center;
  margin: 0 auto;
}

.empty-state-illustration {
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.empty-state-svg {
  max-width: 280px;
  height: auto;
  opacity: 0.85;
  margin: 16px 0;
}

.message-header .course-code {
  font-weight: 500;
  color: var(--color-primary);
  font-size: 18px;
  font-family: var(--font-family-primary);
  margin-bottom: var(--space-xs);
  display: block;
}

.message-content .course-message {
  color: var(--color-primary);
  margin: 0;
  font-size: var(--font-size-label);
  font-family: var(--font-family-primary);
  line-height: 1.5;
  opacity: 0.8;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
}

.product {
  background-color: var(--color-bg-primary);
  border: none;
  box-shadow: inset 0 0 0 1px var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(8, 9, 9, 0.1);
}

.product a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
}

.product h2 {
  margin: 0;
  font-size: var(--font-size-body);
  font-family: var(--font-family-primary);
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.4;
  text-align: center;
}

.product img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.course-tag {
  background-color: rgb(232, 232, 232);
  display: inline-flex;
  align-items: center;
  padding: 4px 12px 4px 16px;
  border-radius: 100px;
  font-size: 16px;
  font-family: var(--font-family-condensed);
  color: rgb(57, 58, 58);
  border: none;
  transition: box-shadow 0.2s ease-in-out;
  gap: 8px;
  height: 36px;
  white-space: nowrap;
}

.course-tag:hover {
  box-shadow: inset 0 0 0 1px var(--color-primary);
}


/* Responsive Design */
@media (max-width: 968px) {
  .course-materials {
    flex-direction: column;
    min-height: auto;
  }

  .filters-panel {
    width: 100%;
    min-height: auto;
    max-height: none;
    padding: var(--space-md) var(--space-sm) var(--space-lg) var(--space-sm);
  }

  .products-section {
    width: 100%;
    min-height: auto;
    padding: var(--space-md) var(--space-sm) var(--space-md) var(--space-sm);
  }

  .products-header {
    width: 100%;
    max-width: 100%;
  }

  .products-text {
    width: 100%;
  }

  .products-title {
    font-size: 32px;
    line-height: 1.2;
  }

  .products-subtitle {
    font-size: var(--font-size-body);
    padding-bottom: var(--space-xs);
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-sm);
    max-width: 100%;
  }

  .toggle-filters {
    margin-bottom: var(--space-xs);
  }

  .filters-content {
    gap: var(--space-sm);
  }

  .form-group {
    gap: var(--space-xs);
  }
}

/* ===== RIGHT PANEL FIGMA DESIGN UPDATES ===== */

/* Right Panel Header - Full width with padding */
.right-panel-header {
  width: 100%;
  max-width: 1440px;
}

.header-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.course-materials-title {
  font-size: 42px;
  font-family: var(--font-family-condensed);
  font-weight: 400;
  color: rgb(8, 9, 9);
  margin: 0;
  line-height: 60px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.course-materials-subtitle {
  font-size: 20px;
  font-family: var(--font-family-primary);
  font-weight: 400;
  color: rgb(8, 9, 9);
  margin: 0;
  line-height: 22px;
  text-align: center;
}
.course-materials-hr {
  border: none;
  height: 1px;
  width: 100%;
  margin: 20px auto;
  background-color: gray;
}

/* Sidebar open state adjustments */
.sidebar-open .header-text {
  align-items: center;
}


.sidebar-open .course-materials-subtitle {
  text-align: left;
}

/* Remove the margin - sidebar and content should be adjacent */

/* Mobile: Hide all-materials-dropdown */
@media (max-width: 968px) {
  .all-materials-dropdown {
    display: none !important;
  }
  
  /* Show mobile course header and hide regular course-section-header */
  .mobile-course-header {
    display: block !important;
  }
  
  .course-section .course-section-header {
    display: none !important;
  }
}

/* Mobile material content changes */
@media (max-width: 968px) {
  /* 1. Swap children of material-content on mobile */
  .material-content {
    flex-direction: row-reverse !important;
    overflow: visible;
  }
  
  /* 2. Hide material-view-more on mobile */
  .material-view-more {
    display: none !important;
  }
  
  /* 3. Hide material-purchase-options initially on mobile */
  .material-purchase-options {
    display: none !important;
  }
  
  /* Show when toggled */
  .material-purchase-options.show {
    display: block !important;
  }
  
  /* 4. Style for View options button - mobile only */
  .material-view-options {
    margin-top: 8px;
    width: fit-content;
    min-height: 0;
    line-height: 16px;
    padding: 0 0 2px 4px;
    background: none;
    border: none;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #101010;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  .material-view-options span {
    color: #101010;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 16px;
  }
  
  .material-view-options .chevron-right {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
  }
  
  .material-view-options.expanded .chevron-right {
    transform: rotate(90deg);
  }
}

/* Hide material-view-options on desktop */
@media (min-width: 969px) {
  .material-view-options {
    display: none !important;
  }
}

/* Right Panel Navigation - Full width with padding */
.right-panel-nav {
  width: 100%;
  max-width: 1440px;
  height: 40px;
  margin: 36px 0 24px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 64px;
}

.nav-chips {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

/* Department Filter Chips - Clean pill style */
.department-chip {
  padding: 8px 20px;
  background-color: rgb(255, 255, 255);
  border-radius: 1000px;
  border: 1px solid #204A65;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 140%;
  letter-spacing: 0%;
  color: #393A3A;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  gap: 10px;
}

.department-chip:hover {
  opacity: 0.8;
}

.department-chip.active {
  background-color: #204A65;
  color: rgb(255, 255, 255);
  border-color: #204A65;
}

/* All Materials Dropdown - Matches Figma Design */
.all-materials-dropdown {
  margin-left: 16px;
  position: relative;
}

.all-materials-btn {
  background: none;
  border: 1px solid #204A65;
  height: 40px;
  min-width: 143px;
  opacity: 1;
  gap: 6px;
  border-radius: 4px;
  border-width: 1px;
  padding: 10px 10px 10px 16px;
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 2%;
  color: #204A65;
  cursor: pointer;
  transition: var(--animation-values);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.all-materials-btn:hover {
  opacity: 0.8;
}

.all-materials-btn:active {
  transform: scale(0.95);
}

.all-materials-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
  border-color: #d4d4d4;
  color: #999;
}

.all-materials-btn:disabled:hover {
  opacity: 0.5;
  transform: none;
}

.all-materials-btn:disabled:active {
  transform: none;
}

/* Dropdown Menu Styles */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  margin-top: 4px;
}

.dropdown-item {
  padding: 12px 16px;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: #101010;
  transition: background-color 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.dropdown-item:hover {
  background-color: #f5f5f5;
}

.dropdown-item:first-child {
  border-radius: 4px 4px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 4px 4px;
}

.dropdown-item.selected {
  background-color: #204A65;
  color: #ffffff;
  font-weight: 600;
}

.dropdown-item.selected:hover {
  background-color: #1a3d52;
  color: #ffffff;
}

.chevron-down-icon {
  width: 18px;
  height: 18px;
  color: inherit;
  transition: transform 0.2s ease;
}

/* Material Type Dropdown Menu */

/* Smooth transitions for material filtering */
.material-item {
  transition: opacity 0.25s ease-out, transform 0.25s ease-out,
    visibility 0.25s ease-out;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  will-change: opacity, transform; /* Optimize for animations */
}

.material-item.filtering-out {
  opacity: 0;
  transform: translateY(-4px);
  visibility: hidden;
  pointer-events: none; /* Prevent interaction during fade out */
}

.material-item.filtering-in {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

/* Ensure smooth layout during filtering */
.course-section {
  transition: all 0.2s ease-out;
}

.course-card {
  transition: all 0.2s ease-out;
}

.material-type-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid rgb(20, 21, 21);
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow: hidden;
}

.dropdown-menu-item {
  padding: 12px 16px;
  font-size: 16px;
  font-family: var(--font-family-condensed);
  color: rgb(20, 21, 21);
  cursor: pointer;
  transition: background-color 0.2s ease;
  line-height: 20px;
}

.dropdown-menu-item:hover {
  background-color: rgb(248, 249, 249);
}

.dropdown-menu-item:active {
  background-color: rgb(240, 241, 241);
}

/* Campus + Term Bar - Clean design with separator line */
.campus-term-bar {
  width: 100%;
  max-width: 1440px;
  padding: 0 20px 16px ;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  display: none !important;
}

.campus-term-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.campus-term-left {
  flex: 1;
}

.campus-term-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 24px;
  line-height: 120%;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #101010;
  margin: 0;
}

.campus-term-right {
  flex-shrink: 0;
}

.materials-count {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #525252;
  margin: 0;
}

/* Bottom separator line */
.campus-term-bar::after {
  content: '';
  width: 100%;
  height: 1px;
  background-color: rgb(0, 0, 0);
}

/* Right Panel Content - Constrained width with padding */
.right-panel-content {
  width: 100%;
  max-width: 1440px;
  padding: 0 0 100px 0;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Initial Placeholder State */
.initial-placeholder-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  min-height: 400px;
}

.placeholder-image-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.placeholder-image {
  max-width: 500px;
  width: 100%;
  margin-top: 100px;
  height: auto;
  opacity: 0.9;
}

/* Note: Open/Close button styles are already defined above at lines 58-93 */

/* Removed duplicate products-section definition */

/* Department Section Styling - Matches Figma Design */
.department-section {
  width: 100%;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.section-department-title {
  font-size: 24px;
  font-family: var(--font-family-condensed);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  line-height: 28px;
  text-transform: uppercase;
}

.section-course-info {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}

.course-code {
  font-size: var(--font-size-body);
  font-family: var(--font-family-condensed);
  font-weight: 600;
  color: var(--color-primary);
  line-height: var(--line-height-body);
}

.section-code {
  font-size: var(--font-size-label);
  font-family: var(--font-family-primary);
  font-weight: 400;
  color: var(--color-primary);
  opacity: 0.8;
  line-height: var(--line-height-label);
}

.section-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
}

/* Update existing product styles to work with sections */
.department-section .product {
  background-color: var(--color-bg-primary);
  border: none;
  box-shadow: inset 0 0 0 1px var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.department-section .product:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(8, 9, 9, 0.1);
}

.department-section .product h3 {
  margin: 0;
  font-size: var(--font-size-body);
  font-family: var(--font-family-primary);
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.4;
  text-align: center;
}

.department-section .product img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* Responsive adjustments for new components */
@media (max-width: 968px) {
  .right-panel-header,
  .right-panel-nav,
  .campus-term-bar,
  .right-panel-content {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 150px;
  }

  .right-panel-header {
    padding: 16px 16px 24px 16px;
  }

  .right-panel-nav {
    padding: 12px 16px 16px;
    margin-bottom: 0;
    margin-top: 0;
  }

  .section-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-sm);
  }

  .section-course-info {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .course-materials-title {
    font-size: 32px;
    line-height: 40px;
    height: auto;
    width: 100%;
  }

  .course-materials-subtitle {
    font-size: 16px;
    line-height: 20px;
    height: auto;
    width: 100%;
  }

  .right-panel-nav {
    flex-direction: column;
    height: auto;
    gap: 16px;
    align-items: stretch;
  }

  .nav-chips {
    width: 100%;
    height: auto;
    flex-wrap: wrap;
  }

  .all-materials-dropdown {
    width: 100%;
  }

  .all-materials-btn {
    width: 100%;
  }
}

  @media (max-width: 480px) {
    .right-panel-header {
      padding: 12px;
      border-bottom: 1px solid #e0e0e0;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .required-count {
      font-size: 16px;
    }

    .material-view-options {
      padding-left: 0;
    }

    .material-badge {
      padding: 2px 6px;
      border-radius: 3px;
    }
    .material-badge-choice{
      display: flex;
      gap: 10px;
    }

    .badge-text {
      font-size: 10px !important;
    }

    .selection-bar__total-label,
    .selection-bar__total-amount {
      font-size: 16px;
    }

    .material-edition {
      margin-bottom: 0 !important;
    }

    .header-actions {
      flex-direction: column;
      gap: 8px;
    }

    .header-content {
      gap: 0;
    }
  }

  .right-panel-nav {
    padding: 12px 16px 16px;
    margin-top: 0;
    margin-bottom: 0;
  }
}

/* Mobile/Tablet Filters - Always visible approach */
@media (max-width: 968px) {
  /* Hide open/close sidebar buttons on mobile/tablet */
  .toggle-filters,
  .close-panel-section {
    display: none !important;
  }

  /* Hide desktop sidebar container in favor of mobile drawer */
  #filters-section {
    display: none !important;
  }

  /* Make filters always visible on mobile/tablet (when shown in drawer) */
  .filters-panel {
    position: static !important;
    display: block !important;
    width: 100% !important;
    background: white;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 16px;
  }

  .filters-content {
    padding: 16px;
    background: white;
  }

  /* Content takes full width since no sidebar */
  .course-materials {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .right-panel {
    margin-left: 0 !important;
    width: 100% !important;
  }

  /* Remove sidebar-open styles on mobile/tablet */
  .sidebar-open .course-materials,
  .sidebar-open .right-panel {
    margin-left: 0 !important;
    width: 100% !important;
  }

  /* Hide separator line on mobile/tablet */
  .separator-line {
    display: none !important;
  }

  /* Hide panel toggle button on mobile/tablet */
  .panel-toggle-container {
    display: none !important;
  }

  /* Optimize form layout for mobile */
  .form-group,
  .form-group-plain {
    margin-bottom: 12px;
  }

  .form-select,
  .form-select-plain,
  .form-input-plain {
    width: 100%;
    padding: 12px 40px 12px 40px; /* Maintain left/right padding for icons */
    font-size: 16px; /* Prevents zoom on iOS */
    border-radius: 6px;
  }

  .form-label {
    font-size: 14px;
    margin-bottom: 6px;
  }

  /* Campus term selected section */
  .campus-term-selected {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
  }

  .campus-term-section-title {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .campus-term-selected-title {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  /* Smaller padding for very small screens */
  .filters-content {
    padding: 12px;
  }

  .form-select,
  .form-select-plain {
    padding: 10px 40px 10px 40px; /* Maintain left/right padding for icons */
    font-size: 16px;
  }

  .form-group,
  .form-group-plain {
    margin-bottom: 10px;
  }

  .campus-term-selected {
    padding: 10px;
    margin-bottom: 10px;
  }

  .campus-term-section-title {
    font-size: 15px;
  }

  .campus-term-selected-title {
    font-size: 13px;
  }
}

/* Figma Design - Using Existing Variables (DRY) */

/* Override products-grid when using Figma layout */
/* Course Layout Container - Full width with proper gaps */
#filtered-products.course-layout {
  display: flex !important;
  flex-direction: column;
  gap: var(--section-gap);
  grid-template-columns: none;
  width: 100%;
}

/* Section - Full width with max-width constraint */
.course-section {
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Course Section Header - Top header for each course section */
.course-section-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 8px 0;
  border-bottom: 1px solid #141515;
  margin-bottom: 4px;
}

.course-section-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 24px;
  line-height: 120%;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #101010;
  margin: 0;
}

.course-section-subtitle {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #525252;
  margin: 0;
}

/* Department Title: "Biology (1)" - Full width */
.department-title {
  width: 100%;
  height: var(--department-height);
  display: flex;
  align-items: center;
  gap: var(--section-internal-gap);
}

.department-name {
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 700;
  font-style: normal;
  line-height: 150%;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #525252;
}

.department-count {
  font-family: var(--font-family-condensed);
  font-size: 20px;
  font-weight: 300;
  line-height: var(--department-height);
  color: rgb(82, 83, 83);
}

/* Course Card - Full width with consistent styling */
.course-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: rgb(255, 255, 255);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgb(240, 240, 240);
  overflow: hidden;
}

/* Header Section - Full width with proper styling */
.course-header {
  width: 100%;
  background: rgb(255, 255, 255);
  border-radius: 12px 12px 0 0;
  padding: 32px 24px 12px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Right Panel Header - Card style */
.right-panel-header {
  width: 100%;
}

/* Header Card - Clean card design */
.header-card {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: none;
  border: none;
  width: 100%;
}
.header-card-discover {
  justify-content: center;
  align-items: center;
}

.text-card-discover {
  justify-content: center;
}
@media (max-width: 768px) { 
    .text-card-discover {
      display: block!important;
      padding: 12px;
    }
  }

/* Header Top Row - Icon and Title (removed) */
.header-top-row {
  display: none;
}

/* Header Icon (removed) */
.header-icon {
  display: none;
}

/* Header Text */
.header-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.course-materials-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 28px;
  line-height: 120%;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #101010;
  margin: 0;
  text-align: left;
}

.course-materials-subtitle {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #404040;
  margin: 0;
  text-align: left;
}

/* Header Content - Responsive layout */
.header-content {
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--content-gap);
}

/* Course Details - Flexible width */
.course-details {
  flex: 1;
  height: var(--content-height);
  display: flex;
  flex-direction: column;
}

/* Course Title - Roboto Black */
.course-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-style: normal;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #101010;
  margin: 0 0 8px 0;
}

/* Section Info - Roboto Regular */
.section-info {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #404040;
  margin: 0;
}



/* Remove Button - Text link style matching MATH 100 design */
.remove-btn {
  background: none;
  border: 1px solid #204A65;
  height: 40px;
  opacity: 1;
  gap: 6px;
  border-radius: 4px;
  border-width: 1px;
  padding: 10px 10px 10px 16px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 2%;
  text-transform: uppercase;
  color: #204A65;
  cursor: pointer;
  transition: var(--animation-values);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.remove-btn .remove-icon {
  width: 16px;
  height: 16px;
  color: #204A65;
  margin-bottom: 2px;
}

.remove-btn:hover {
  opacity: 0.8;
}

/* Required Count - Right-aligned text */
.required-count {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #525252;
  text-align: right;
  margin: 7px 0 0 0;
}

/* Materials Section - Full width content area */
.materials-section {
  width: 100%;
  background: rgb(255, 255, 255);
  border-radius: 0 0 12px 12px;
  border: none;
  padding: 0 24px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden; /* Prevent horizontal overflow */
  box-sizing: border-box;
  position: relative;
}

/* No Materials Message */
.no-materials-content {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.no-materials-text {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #080909;
  text-align: left;
  margin: 0;
}

/* Material item divider */
.material-item:not(:last-child) {
  border-bottom: 1px solid rgb(210, 210, 210);
  padding: 24px 0;
  margin-bottom: 24px;
}

/* Material Item - Full width layout matching Figma design */
.material-item {
  width: 100%;
  display: flex;
  gap: 20px;
  align-items: start; /* Keep items aligned to top */
  box-sizing: border-box;
  min-height: 0; /* Allow flex items to shrink */
}

/* ===== RESPONSIVE LAYOUT - SIMPLIFIED ===== */

/* DESKTOP: Always horizontal layout, regardless of sidebar state */
@media (min-width: 1200px) {
  /* Purchase types: ALWAYS in row for desktop */
  .purchase-types {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px; /* Smaller gap to fit better in 421px container */
  }

  .purchase-type {
    flex: 1 !important; /* Equal width for all 3 items */
    width: auto !important; /* Override mobile width: 100% */
    min-width: 0; /* Let flex handle the sizing */
    max-width: none;
  }

  /* Format buttons: Grid layout with sidebar considerations */
  .format-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    flex-direction: initial; /* Override mobile column */
    gap: 8px;
  }

  .format-btn {
    width: auto; /* Allow grid to control width */
  }

  /* When sidebar is open, use smaller format buttons */
  .sidebar-open .format-row {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

/* TABLET: Stacked layout for all states */
@media (max-width: 1199px) {
  .material-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .format-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .purchase-types {
    display: flex;
    flex-direction: row; /* Try horizontal first */
    flex-wrap: wrap; /* Wrap to new line if needed */
    gap: 8px;
  }

  .format-btn {
    width: 100%;
  }

  .purchase-type {
    flex: 1 1 auto; /* Flexible width, min 140px */
    min-width: 140px;
    max-width: 100%;
  }

  .material-content {
    flex-direction: row;
    gap: 16px;
  }

  .material-image-container {
    width: 120px;
    min-width: 120px;
    height: 180px;
    flex-shrink: 0;
  }

  /* Use full width in smaller screens */
  .material-purchase-options {
    max-width: none !important;
    width: 100% !important;
  }
}

/* DESKTOP with SIDEBAR: Force column layout when space is cramped (1200px-1450px) */
@media (min-width: 1200px) and (max-width: 1450px) {
  .sidebar-open .purchase-types {
    display: flex !important;
    gap: 8px;
    width: 100% !important;
    flex-wrap: wrap;
  }

  .sidebar-open .purchase-type {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }

  .sidebar-open .format-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
  }

  .sidebar-open .format-btn {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* Also ensure material-purchase-options uses full width */
  .sidebar-open .material-purchase-options {
    max-width: none !important;
    width: 100% !important;
  }
}

/* Mobile responsive layout - trigger earlier due to sidebar */
@media (max-width: 1100px) {
  .material-author {
    margin-bottom: 8px !important;
  }

  .material-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .materials-section {
    padding: 0 16px 20px 16px;
    gap: 20px;
    border-radius: 0 0 12px 12px;
    margin-top: 0;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .toggle-filters {
    padding: 0 16px;
  }

  /* Reduce padding on all main containers for mobile */
  .header-container,
  .search-container,
  .navigation-container,
  .results-header,
  .results-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Course section mobile styles - Clean Figma pattern */
  .course-header {
    min-height: auto;
    height: auto;
    padding: 20px 16px 16px 16px;
    border-radius: 16px 16px 0 0;
    position: relative;
    z-index: 2;
  }

  .header-content {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    height: auto;
  }

  .course-details {
    width: 100%;
    height: auto;
    gap: 4px;
  }

  .header-actions {
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: auto;
  }

  .remove-btn:hover {
    opacity: 0.7;
    background-color: transparent;
  }

  .required-count {
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
    color: rgb(8, 9, 9);
    order: 2;
  }

  .department-name,
  .department-count {
    font-size: 18px;
    line-height: 22px;
  }

  /* Campus Term Bar Mobile */
  .campus-term-bar {
    padding: 0 16px 8px 16px;
    height: auto;
    min-height: 40px;
    margin-bottom: 12px;
  }

  .campus-term-title {
    font-size: 24px;
    line-height: 28px;
    font-weight: 700;
  }

  .materials-count {
    font-size: 16px;
    line-height: 20px;
  }

  /* Campus Term Selected State Mobile */
  .campus-term-selected {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
  }

  .campus-term-section-title {
    font-size: 18px;
    line-height: 22px;
  }

  .campus-term-selected-title {
    font-size: 14px;
    line-height: 18px;
  }

  /* Material responsive styles - consolidated */
  .material-information {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }

  .material-content {
    height: auto;
    gap: 16px;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
  }

  .material-text-content {
    flex: 1;
    min-width: 0;
    height: auto;
    gap: 12px;
    max-width: calc(100% - 136px); /* Account for image width + gap */
    overflow: hidden;
    padding-right: 16px;
    box-sizing: border-box;
  }

  .material-text {
    flex: 1;
    height: auto;
    gap: 0;
  }

  .material-author,
  .material-edition,
  .material-isbn {
    font-weight: 400;
    font-style: Regular;
    font-size: 14px !important;
    line-height: 22px !important;
    letter-spacing: 0%;
    vertical-align: middle !important;
    color: #404040 !important;
  }

  .material-details {
    gap: 0;
  }

  .material-purchase-options {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding-top: 0;
    overflow: visible;
    box-sizing: border-box;
  }

  .purchase-title {
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
    margin-bottom: 8px;
  }

  .format-row,
  .format-options .format-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
  }

  .format-btn {
    width: 100% !important;
    min-height: 56px;
    padding: 12px 16px;
    border-radius: 6px;
  }

  .format-label {
    font-size: 13px;
    line-height: 16px;
    font-weight: 500;
  }

  .format-price {
    font-size: 11px;
    line-height: 14px;
    opacity: 0.7;
  }

  .price-blocks,
  .simple-product-purchase {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    margin-top: 8px;
  }

  .rental-notice {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 8px;
  }

  .notice-text {
    font-size: 11px;
    line-height: 14px;
  }

  .purchase-types {
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
  }

  .purchase-type {
    flex: 1;
    min-width: 0; /* Let flex handle sizing */
    min-height: 100px;
    padding: 8px;
    border-radius: 6px;
  }

  .purchase-price {
    font-size: 18px;
    line-height: 22px;
    font-weight: 600;
  }

  .purchase-type-label {
    font-size: 11px;
    line-height: 14px;
    font-weight: 400;
    text-transform: uppercase;
  }

  /* In Bag Indicator Mobile Styles */
  .in-bag-indicator {
    font-size: 10px;
    gap: 4px;
    font-weight: 600;
  }

  .in-bag-indicator .in-bag-icon {
    width: 12px;
    height: 12px;
  }

  .in-bag-indicator .in-bag-text {
    font-size: 10px;
    line-height: 12px;
    font-weight: 600;
  }
}

/* Force column layout for format buttons on small screens */
@media (max-width: 600px) {
  .format-row,
  .format-options .format-row {
    flex-direction: column !important;
  }

  .format-btn {
    width: 100% !important;
    flex: none !important;
  }
}

/* Small mobile screens */
@media (max-width: 480px) {
  .materials-section {
    padding: 12px;
    gap: 12px;
  }

  .course-header {
    min-height: auto;
    height: auto;
    padding: 12px;
    border-radius: 8px 8px 0 0;
  }

  .header-content {
    gap: 4px;
  }

  .remove-btn {
    height: 32px;
    padding: 10px 6px 10px 10px;
  }

  .course-title {
    font-size: 18px;
    line-height: 22px;
  }

  .section-info {
    font-size: 13px;
    line-height: 16px;
  }

  .header-actions {
    gap: 6px;
  }

  .required-count {
    font-size: 13px;
    line-height: 16px;
    margin-top: 0 !important;
  }

  .department-name,
  .department-count {
    font-size: 16px;
    line-height: 20px;
  }

  /* Campus Term Bar Small Mobile */
  .campus-term-bar {
    padding: 0 12px 6px 12px;
    min-height: 36px;
    margin-bottom: 10px;
  }

  .campus-term-title {
    font-size: 20px;
    line-height: 24px;
  }

  .materials-count {
    font-size: 14px;
    line-height: 18px;
  }

  /* Campus Term Selected State Small Mobile */
  .campus-term-selected {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
  }

  .campus-term-section-title {
    font-size: 16px;
    line-height: 20px;
  }

  .campus-term-selected-title {
    font-size: 13px;
    line-height: 16px;
  }

  .material-content {
    gap: 16px;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
  }

  .material-image-container {
    width: 110px;
    min-width: 110px;
    height: 160px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-shrink: 0;
  }

  .material-text-content {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 126px); /* Account for image width + gap */
    overflow: hidden;
    padding-right: 16px;
    box-sizing: border-box;
  }

  .material-title {
    font-size: 17px;
    line-height: 22px;
    font-weight: 600;
  }

  .material-author,
  .material-edition,
  .material-isbn {
    font-size: 12px;
    line-height: 16px;
    margin-bottom: 0 !important;
  }

  .purchase-header {
    gap: 6px;
  }

  .purchase-title {
    font-size: 13px;
    line-height: 16px;
  }

  .format-options {
    gap: 12px;
  }

  .format-row,
  .format-options .format-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px;
  }

  .format-btn {
    width: 100% !important;
    min-height: 52px;
    padding: 12px 14px;
  }

  .format-label {
    font-size: 13px;
    line-height: 16px;
  }

  .format-price {
    font-size: 11px;
    line-height: 14px;
  }

  .price-blocks,
  .simple-product-purchase {
    padding: 10px;
  }

  .purchase-type {
    min-height: 100px;
    padding: 8px;
  }

  .purchase-price {
    font-size: 18px;
    line-height: 22px;
  }

  .purchase-type-label {
    font-size: 11px;
    line-height: 14px;
  }

  .rental-duration,
  .rental-days {
    font-size: 11px;
    line-height: 14px;
  }
}

/* Material Information Section - Left side with book details */
.material-information {
  width: 400px;
  min-width: 400px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  align-self: start; /* Keep this section at the top */
}

/* Material Badge - Base styles */
.material-badge {
  width: fit-content;
  height: 24px;
  padding: 2px 4px;
  border-radius: 4px;
  border-width: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.material-badge-choice{
  display: flex;
  gap: 10px;
}

/* Mobile - Even less padding */
@media (max-width: 968px) {
  .material-badge {
    margin-bottom: 0;
  }
  .material-badge-choice{
    display: flex;
    gap: 10px;
  }

  .material-title {
    font-size: 16px;
    line-height: 130% !important;
    font-weight: 600;
    margin-bottom: 0;
    margin-top: 4px !important
  }

  .material-image-container {
    width: 113px !important;
    min-width: 113px !important;
    height: 180px !important;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-shrink: 0;
  }

  /* Material item mobile styling */
  .material-item {
    border-bottom: none !important;
    padding: 16px !important;
    border: 1px solid #D0D0D0 !important;
    border-radius: 8px !important;
    margin-bottom: 16px !important;
  }

  .material-item:not(:last-child) {
    border-bottom: none;
    padding: 16px !important;
    margin-bottom: 16px !important;
  }

  /* Selection bar mobile styling */
  .selection-bar__add-to-bag {
    width: 100% !important;
  }

  .selection-bar__purchase-total {
    font-size: 20px !important;
  }

  /* Remove margin-top from placeholder image on mobile */
  .placeholder-image {
    margin-top: 0 !important;
  }

}

/* Required Badge - Blue */
.material-badge.required {
  background-color: #2B51A2;
  border-color: #2B51A2;
}

.material-badge.required .badge-text {
  color: #ffffff;
}

/* Choice Badge - Gray */
.material-badge.choice {
  background-color: rgb(107, 114, 128);
}

.material-badge.choice .badge-text {
  color: rgb(250, 250, 250);
}

/* Recommended Badge - White with black border */
.material-badge.recommended {
  width: fit-content;
  height: 24px;
  angle: 0deg;
  opacity: 1;
  gap: 2px;
  border-radius: 4px;
  border-width: 1px;
  padding-top: 2px;
  padding-right: 4px;
  padding-bottom: 2px;
  padding-left: 4px;
  border: 1px solid #2B51A2;
  background-color: #ffffff;
}

.material-badge.recommended .badge-text {
  color: #2B51A2;
}

.badge-text {
  letter-spacing: 0.5px;
  font-family: Roboto;
  font-weight: 400;
  font-style: Regular;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 2%;
  vertical-align: middle;
  
}

/* Material Content - Image and text content */
.material-content {
  width: 100%;
  height: 180px;
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.material-image-container {
  width: 180px;
  min-width: 180px;
  height: 272px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: start; /* Keep image at the top */
  flex-shrink: 0; /* Prevent shrinking */
}

.material-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-sm);
  background: white;
}

.material-image-container {
  position: relative;
}

.material-image-plus-button {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 40px;
  height: 40px;
  padding: 4px;
  background-color: #ffffff;
  border: 1px solid #000000;
  border-radius: 100px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0px 0px 10px 0px #0000000D;
  z-index: 10;
  transition: all 0.2s ease;
  opacity: 1;
}

.material-image-plus-button:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.material-image-plus-button:active {
  transform: scale(0.95);
}

.material-image-plus-button svg {
  width: 16px;
  height: 16px;
  stroke: #333;
  stroke-width: 2;
}

.material-text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.material-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.material-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 20px;
  line-height: 150%;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #101010;
  margin: 0;
}

.material-details {
  display: flex;
  flex-direction: column;
}

.material-author {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #404040;
  margin: 0 0 16px 0;
}

.material-edition {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #404040;
  margin: 0 0 4px 0;
}

.material-isbn {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #404040;
  margin: 0;
}

.material-view-more {
  margin-top: 8px;
  width: fit-content;
  min-height: 0;
  line-height: 16px;
  gap: 10px;
  opacity: 1;

  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid #101010;
}

.material-view-more span {
  color: #101010;
}

.view-more-btn {
  background: none;
  border: none;
  border-bottom: 1px solid #101010;
  border-radius: 0;
  width: 126px;
  opacity: 1;
  gap: 10px;
  padding: 0 4px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 12px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #101010;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

.view-more-btn:hover {
  opacity: 0.8;
}

.chevron-down {
  width: 16px;
  height: 16px;
  color: #101010;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.chevron-down path {
  stroke: #101010;
}

.view-more-btn.expanded .chevron-down {
  transform: rotate(180deg);
}

/* Material Purchase Options - Right side with format and pricing */
.material-purchase-options {
  flex: 1;
  min-width: 240px; /* More flexible minimum */
  width: 100%;
  max-width: 484px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  overflow: visible;
}


/* Format Collapses Container */
.format-collapses {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

/* Purchase Options Title */
.purchase-options-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #080909;
  margin: 0 0 8px 0;
}

/* Format Tabs Container */
.format-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

/* Individual Format Tab */
.format-tab {
  flex: 1;
  height: 60px;
  background-color: #ffffff;
  border: 1px solid #D0D0D0;
  border-radius: 4px;
  border-width: 1px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  opacity: 1;
  angle: 0deg;
  box-shadow: none;
}

.format-tab:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
}

.format-tab.active {
  background-color: #ffffff;
  border-color: #204A65;
  border-width: 2px;
  border-style: solid;
}

.format-tab-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 20px;
  line-height: 36px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #080909;
  margin: 0;
}

.format-tab-price {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0%;
  text-align: left;
  vertical-align: middle;
  color: #6b6b6b;
  margin: 0;
}

/* Individual Format Collapse */
.format-collapse {
  width: 100%;
  border-top: none;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: visible;
  display: none;
}

.format-collapse.active {
  display: block;
}

/* Collapse Header - Hidden for tab interface */
.collapse-header {
  display: none;
}

.collapse-header:hover {
  background-color: #f9fafb;
}

/* Collapse Title and Subtitle */
.collapse-title {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #111827;
  margin: 0;
}

.collapse-subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #6b7280;
  margin: 0;
  margin-left: 8px;
}

/* Collapse Chevron */
.collapse-chevron {
  color: #6b7280;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.format-collapse.active .collapse-chevron {
  transform: rotate(180deg);
}

/* Collapse Content - Always visible for tab interface */
.collapse-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 8px;
  padding: 16px;
  background-color: #f8f8f8;
  opacity: 1;
  angle: 0deg;
}

/* Rental Banner */
.rental-banner {
  background: #2B51A20D;
  color: #2B51A2;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 2%;
  vertical-align: middle;
  border-radius: 4px;
  width: fit-content;
}

.rental-banner .dollar-icon {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #2B51A2;
}

/* Digital Delivery Notice */
.digital-delivery-notice {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0;
  vertical-align: middle;
  color: #6b6b6b;
}

/* Purchase Types Grid - Dynamic layout based on number of options */
.purchase-types {
  display: grid;
  gap: 16px;
  padding: 0;
  background-color: transparent;
  /* Maximum 2 columns, auto-fit based on content */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-auto-rows: auto;
}

.purchase-type:hover {
  border-color: #d1d5db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.purchase-type.selected {
  box-shadow: 0px 4px 12px 0px #f59e0b40;
  border: 2px solid #204a65;
}

/* Checkbox checked state */
.purchase-type:has(.purchase-checkbox:checked) {
  border: 2px solid #204a65;
}

/* Purchase Type Header */
.purchase-type-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 8px;
}

.purchase-type-label {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0%;
  text-transform: uppercase;
  color: #101010;
}

.purchase-type-label .question-icon {
  width: 14px;
  height: 14px;
  fill: #6b6b6b;
}

.question-icon {
  width: 16px;
  height: 16px;
  fill: #6b7280;
}

/* Tooltip positioning within purchase-type-label */
.purchase-type-label .tooltip-trigger {
  position: relative;
  display: inline-block;
}

.purchase-type-label .tooltip-trigger::after {
  /* Position tooltip above and to the left */
  bottom: 100%;
  left: 0;
  margin-bottom: 8px;
  margin-left: 0;
  transform: translateX(-60%);
  
  /* Make tooltip more compact */
  width: 250px !important;
  min-width: 200px !important;
  min-height: auto !important;
  padding: 12px !important;
  font-size: 13px !important;
  white-space: normal;
  background-color: #ffffff !important;
  
  /* Ensure tooltip appears above parent elements */
  z-index: 9999 !important;
}

/* Prevent tooltip clipping by parent elements */
.purchase-type {
  overflow: visible !important;
}

.purchase-type-header {
  overflow: visible !important;
}

.purchase-type-label-container {
  overflow: visible !important;
}

/* Purchase Price */
.purchase-price {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 20px;
  line-height: 150%;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #101010;
  margin: 0;
}

/* Purchase Checkbox Container - Inside header */
.purchase-checkbox-container {
  position: relative;
  top: auto;
  right: auto;
}

/* Smart Pick Label - Top Right */
.smart-pick-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 77px;
  height: 22px;
  opacity: 1;
  gap: 4px;
  border-radius: 4px;
  padding: 4px;
  background-color: #FFE27C;
  color: #101010;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 10;
}

/* Rental Duration Text */
.rental-duration {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  line-height: 150%;
  letter-spacing: 0%;
  color: #737373;
  margin: 0;
}

.rental-duration .days-text {
  font-weight: 700;
}

/* Delivery Notice - Bottom of entire section */
.delivery-notice {
  background-color: #f8f9fa;
  border-top: 1px solid #e5e7eb;
  padding: 16px 24px;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}

.purchase-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.purchase-title {
  font-family: var(--font-family-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: rgb(8, 9, 9);
  margin: 0;
}

.format-options {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.format-options .format-row,
.format-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.format-btn {
  width: 100%;
  min-width: 140px;
  min-height: 64px;
  padding: 14px 16px;
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(208, 208, 208);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

/* Base layout - Mobile first approach */
.purchase-types {
  display: flex;
  flex-direction: row;
  gap: 16px;
  width: 100%;
  flex-wrap: wrap;
}

.purchase-type {
  flex: 1;
  min-width: 140px;
  min-height: 154px;
  max-width: 140px;
  padding: 16px 12px;
  background-color: #ffffff;
  border-radius: 12px;
  border: none;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-sizing: border-box;
  position: relative;
  box-shadow: 0px 4px 12px 0px #0000001A;
}

.purchase-type:hover {
  box-shadow: 0px 6px 16px 0px #00000020;
}

/* Smart Pick Card Styling */
.purchase-type.smart-pick {
  /* No special styling for the card itself */
}

.purchase-type.smart-pick:hover {
  /* No special styling for the card itself */
}

.format-btn:hover {
  border-color: rgb(142, 142, 142);
  background-color: rgb(248, 248, 248);
}

.format-btn.selected {
  border-color: rgb(8, 9, 9);
  background-color: rgb(245, 245, 245);
}

.format-btn .format-label {
  font-family: var(--font-family-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  color: rgb(8, 9, 9);
}

.format-btn .format-price {
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: rgb(107, 107, 107);
}

/* Price Blocks Section */
.price-blocks {
  width: 100%;
  padding: 16px;
  background-color: rgb(237, 237, 237);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

/* Simple Product Purchase - Consistent padding with price-blocks */
.simple-product-purchase {
  width: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.rental-notice {
  width: 100%;
  padding: 8px;
  background-color: rgb(210, 210, 210);
  border-radius: 8px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.notice-content {
  display: flex;
  align-items: center;
  gap: 4px;
}

.notice-icon {
  width: 16px;
  height: 16px;
  color: rgb(107, 107, 107);
}

.notice-text {
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: rgb(107, 107, 107);
}

.purchase-type:hover {
  border-color: rgb(100, 100, 100);
}

.purchase-type.selected {
  box-shadow: 0px 4px 12px 0px #14151540;
}

.purchase-type-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.purchase-radio {
  display: none;
}

.purchase-type-label {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #111827;
  cursor: pointer;
  margin: 0;
}

/* In Bag Indicator Styles */
.in-bag-indicator {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #1f7427;
}

.in-bag-indicator .in-bag-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.in-bag-indicator .in-bag-text {
  white-space: nowrap;
  font-family: var(--font-family-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

/* Purchase type with item in cart */
.purchase-type.in-cart {
  border-color: #1f7427;
}

.purchase-type.in-cart:hover {
  border-color: #1f7427;
}

.purchase-price {
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: #111827;
  margin: 0;
}

.rental-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}

.rental-duration {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  color: #6b7280;
}

.rental-days {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  color: #6b7280;
}

.smart-pick-badge {
  width: fit-content;
  padding: 2px 6px;
  background-color: rgb(20, 21, 21);
  border-radius: 2px;
  font-family: var(--font-family-condensed);
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  color: rgb(250, 250, 250);
  text-transform: uppercase;
}

.delivery-notice {
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: rgb(107, 107, 107);
}

/* Note: Material responsive styles consolidated above in main 968px media query */

/* Legacy support for existing loading-message class - kept for backward compatibility */
.loading-message {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 2rem;
}

/* Adoption Status Cards */
.adoption-status-section {
  margin-bottom: var(--section-gap);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-large);
  overflow: hidden;
}

.adoption-card {
  background: transparent;
  border: none;
  border-radius: 0;
}

.adoption-card .course-header {
  border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
  overflow: hidden;
}

.adoption-message-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 24px 24px;
  background: var(--color-bg-primary);
}

.adoption-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: rgb(var(--color-foreground-rgb) / 0.6);
}

.adoption-icon svg {
  width: 100%;
  height: 100%;
}

.adoption-text {
  flex: 1;
}

.adoption-title {
  font-family: var(--font-family-condensed);
  font-size: var(--font-size-body);
  font-weight: 600;
  line-height: var(--line-height-body);
  color: var(--color-primary);
  margin: 0 0 8px 0;
}

.adoption-note {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: rgb(var(--color-foreground-rgb) / 0.8);
  margin: 0;
}

/* Simplified adoption status styling - no colors */

/* Responsive adjustments for adoption cards */
@media (max-width: 968px) {
  .adoption-message-content {
    padding: 20px;
    gap: 12px;
  }

  .adoption-icon {
    width: 20px;
    height: 20px;
  }

  .adoption-title {
    font-size: var(--font-size-label);
  }

  .adoption-note {
    font-size: var(--font-size-label);
  }
}

/* Expanded Details Styling - Natural Flow */
.material-details-expanded {
  display: none;
  width: 100%;
}

.material-details-expanded.expanded {
  display: block;
  padding-top: 4px;
}

.expanded-details-content {
  margin: 0;
  padding: 0;
  width: 100%;
}

.detail-row {
  margin: 4px 0;
  font-size: 14px;
  line-height: 1.4;
  width: 100%;
  display: block;
}

.detail-label {
  color: #666;
  font-weight: normal;
}

.detail-value {
  color: #6b7280;
  font-weight: 500;
}

/* View more button styling */
.view-more-btn {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  padding: 0;
  transition: color 0.2s ease;
  height: fit-content;
  width: fit-content;
  gap: 10px;
}

.view-more-btn:hover {
  color: #495057;
}

.view-more-btn .chevron-down {
  transition: transform 0.3s ease;
  width: 16px;
  height: 16px;
}

/* Ensure parent containers can expand with content */
.material-item {
  min-height: auto !important;
  height: auto !important;
}

/* Unavailable product styles - extend existing UI with disabled properties */
.purchase-type.unavailable {
  position: relative;
  opacity: 0.6;
  /* Removed pointer-events: none to allow selection */
  background-color: #f8f9fa;
  overflow: hidden;
  cursor: not-allowed; /* Prevent clicking on unavailable items */
}

/* Diagonal line for unavailable products - SVG line from bottom-right to top-left */
.purchase-type.unavailable::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cline x1='100' y1='100' x2='0' y2='0' stroke='%239c9d9d' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
}

/* Disabled checkbox styling for unavailable products */
.purchase-type.unavailable .checkbox-label {
  background-color: #727373;
  border-color: #727373;
  cursor: pointer; /* Allow clicking */
}

.purchase-type.unavailable .checkbox-label:hover {
  background-color: #727373;
  border-color: #727373;
  box-shadow: none;
}

/* No formats available message */
.no-formats-available {
  text-align: center;
  padding: 16px;
  color: #666;
  font-size: 0.875rem;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  margin: 8px 0;
}

.out-of-stock-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #dc3545;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 500;
  color: #dc3545;
  z-index: 2;
  display: none; /* Hide the "Out of stock" text */
}

.out-of-stock-text {
  line-height: 1.2;
}

.notify-me-container {
  margin-top: 12px;
  pointer-events: auto;
}

/* Notify container within price blocks */
.material-notify-container {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: none !important;
}

.notify-me-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  width: auto;
  padding: 0;
  background: transparent;
  border: none;
  color: rgb(8, 9, 9);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  justify-content: flex-start;
  text-decoration: none;
  font-family: 'Roboto', var(--font-family-primary);
  line-height: 22px;
}

.notify-me-btn .notify-icon {
  width: 16px;
  height: 16px;
  color: rgb(8, 9, 9);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.notify-me-btn .notify-text {
  color: rgb(8, 9, 9);
  font-size: 14px;
  line-height: 22px;
  font-family: 'Roboto', var(--font-family-primary);
  font-weight: 400;
}

.notify-me-btn:hover {
  color: rgb(50, 50, 50);
}

.notify-me-btn:hover .notify-icon {
  color: rgb(50, 50, 50);
}

.notify-me-btn:hover .notify-text {
  color: rgb(50, 50, 50);
}

.notify-me-btn .underlined-text {
  text-decoration: underline;
}

.material-information {
  min-height: auto !important;
  height: auto !important;
}

.material-content {
  min-height: auto !important;
  height: auto !important;
}

.material-text-content {
  min-height: auto !important;
  height: auto !important;
}

.material-text {
  min-height: auto !important;
  height: auto !important;
}

/* New Design Styles - Course Search Input */
.course-search-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.course-search-input {
  position: relative;
  width: 100%;
}

.form-input-search {
  width: 100%;
  height: 52px;
  padding: 8px 40px 8px 40px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
  background-color: #ffffff;
  color: #111827;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  appearance: none;
  box-sizing: border-box;
}

.form-input-search:focus {
  outline: none;
  border-color: #007aff;
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2);
}

.course-search-input .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.6;
}

.course-search-input .dropdown-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.6;
}

.manual-add-courses-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #101010;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
  align-self: flex-start;
}

.manual-add-courses-btn:hover {
  opacity: 0.8;
}

.manual-add-courses-btn .plus-icon {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

/* Course Search Results */
.course-search-results {
  margin-top: 16px;
  width: 100%;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.course-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
}

.course-result-item:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.course-result-item.selected {
  background-color: #eff6ff;
  border-color: #1e40af;
}

.course-result-text {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #111827;
  line-height: 24px;
}

.course-result-item.selected .course-result-text {
  color: #1e40af;
  font-weight: 500;
}

.course-result-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  transition: all 0.2s ease;
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
}

.course-result-action .check-icon {
  width: 16px;
  height: 16px;
  color: #ffffff;
}

.course-result-action .plus-icon {
  width: 16px;
  height: 16px;
  color: #6b7280;
}

.course-result-item:hover .course-result-action .plus-icon {
  color: #374151;
}

/* Selected state button styling */
.course-result-item.selected .course-result-action {
  background-color: #1e40af;
  border-color: #1e40af;
}

/* Loading and Error Messages */
.loading-message,
.error-message {
  padding: 16px;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #666;
  background-color: rgb(248, 248, 248);
  border: 1px solid rgb(208, 208, 208);
  border-radius: 6px;
  margin-top: 16px;
}

.error-message {
  color: #dc2626;
  background-color: #fef2f2;
  border-color: #fecaca;
}

/* Course Selection Options */
.course-selection-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.course-dropdowns {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0;
}

.search-divider::before,
.search-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #d0d0d0;
}

.search-divider span {
  padding: 0 16px;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #666;
  background-color: white;
}

/* Selected Courses Section */
.selected-courses-section {
  margin-top: 16px;
}

.selected-courses-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  color: #393A3A;
  background: #204A650D;
  border-radius: 1000px;
}

.course-chip-remove {
  cursor: pointer;
}

/* Course Selection Divider */
.course-selection-divider {
  display: flex;
  align-items: center;
  width: 100%;
  height: 56px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background-color: #737373;
}

.divider-text {
  padding: 0 16px;
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
  font-style: normal;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0%;
  text-transform: uppercase;
  color: #101010;
  background-color: white;
}

/* All Courses Section */
.all-courses-section {
  width: 100%;
  margin-top: 16px;
}

/* Search Bar */
.course-search-bar {
  margin-bottom: 12px;
}

.search-input-container {
  position: relative;
  width: 100%;
}

.course-search-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #101010;
  background-color: white;
  box-sizing: border-box;
}

.course-search-input::placeholder {
  color: #999;
}

.course-search-input:focus {
  outline: none;
  border-color: #1E40AF;
  box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.1);
}

.search-input-container .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
}

/* Course List */
.all-courses-list {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background-color: white;
}

.courses-container {
  padding: 8px;
}

.course-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin-bottom: 8px;
  background-color: #ffffff;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.course-item:last-child {
  margin-bottom: 0;
}

.course-item:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.course-item.selected {
  background-color: #f8fafc;
  border-color: #1e40af;
}

.course-item-text {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #111827;
  line-height: 20px;
}

.course-item.selected .course-item-text {
  color: #1e40af;
  font-weight: 600;
}

.course-item-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  transition: all 0.2s ease;
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
}

.course-item.selected .course-item-action {
  background-color: #1e40af;
  border-color: #1e40af;
}

.course-item:not(.selected) .course-item-action {
  background-color: #f3f4f6;
  border-color: #d1d5db;
}

.course-item-action .check-icon {
  width: 14px;
  height: 14px;
  color: #ffffff;
}

.course-item-action .plus-icon {
  width: 12px;
  height: 12px;
  color: #6b7280;
}

.course-item:hover .course-item-action .plus-icon {
  color: #374151;
}

/* Loading State */
.courses-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #666;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
}

.loading-spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #1E40AF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

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



  @media (max-width: 968px) {
  /* Header Actions Container - Right-aligned actions */
  .header-actions {
    width: auto;
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
  }
  .material-image-plus-button {
    display: flex;
  }
  .material-information {
    overflow: visible;
  }
  
  .material-item {
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
  }
  
  .material-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
  }
  
  .material-item .material-image-plus-button,
  .material-item .material-view-options,
  .material-item .view-more-btn,
  .material-item .purchase-checkbox,
  .material-item .requirements-link {
    pointer-events: auto;
  }
  .course-details-section,
  .course-name-section,
  .student-id-section {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .campus-term-selected {
    padding: 16px;
  }
  
  .course-search-container {
    gap: 12px;
  }
  
  .form-input-search {
    padding: 12px 40px 12px 40px;
    font-size: 16px;
    border-radius: 6px;
  }
  
  .manual-add-courses-btn {
    font-size: 16px;
  }
  
  .course-search-results {
    margin-top: 12px;
  }
  
  .course-result-item {
    padding: 14px 16px;
  }
  
  .course-result-text {
    font-size: 16px;
    line-height: 22px;
  }
  
  .filters-title {
    font-size: 24px;
  }
  
  .filters-subtitle {
    font-size: 15px;
    line-height: 20px;
  }

  /* Fix for view more details button on mobile */
  .material-view-more {
    width: auto;
    min-width: 126px;
    height: auto;
    min-height: 20px;
  }

  .view-more-btn {
    white-space: normal;
    font-size: 14px;
    line-height: 1.3;
  }

  /* Remove padding-top from material-purchase-options on mobile */
  .material-purchase-options {
    padding-top: 0 !important;
  }

  /* Remove left and right padding from products-section on mobile */
  .products-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Add 16px padding to department-title on mobile */
  .department-title {
    padding: 16px;
  }

  /* Course section header mobile styles */
  .course-section-header {
    padding: 12px 16px;
    margin-bottom: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .course-section-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 125%;
    letter-spacing: -0.01em;
    color: #101010;
    margin-bottom: 6px;
  }

  .course-section-subtitle {
    font-size: 16px;
    line-height: 150%;
  }

  /* Stack campus-term-content children vertically and align left on mobile */
  .campus-term-content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 16px;
    gap: 6px;
  }

  /* Remove left and right padding from campus-term-bar on mobile */
  .campus-term-bar {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Course title mobile styles */
  .course-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 18px;
    line-height: 130%;
    letter-spacing: 0%;
    vertical-align: middle;
    margin-bottom: 0;
  }

  /* Section info mobile styles */
  .section-info {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0%;
    vertical-align: middle;
  }

  /* Campus term title mobile styles */
  .campus-term-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 24px;
    line-height: 120%;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #101010;
  }

  /* Campus term right text mobile styles */
  .campus-term-right {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #525252;
  }

  /* Breadcrumb navigation mobile styles */
  .breadcrumb-navigation {
    padding-left: 16px;
  }

  /* Department chip mobile styles */
  .department-chip,
  .department-chip.active {
    height: auto;
    border-radius: 1000px;
    gap: 10px;
    opacity: 1;
    padding: 8px 20px;
    border-width: 1px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: 0%;
  }

  /* Hide header card on mobile */
  .header-card {
    display: none !important;
  }
  .header-card.text-card-discover{
    display: block !important;
  }

  /* Mobile course trigger section */
  .mobile-course-trigger {
    display: block !important;
    padding-top: 0;
    margin-top: 0;
  }

  .mobile-main-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    font-style: normal;
    font-size: 32px;
    line-height: 110%;
    letter-spacing: -0.02em;
    color: #101010;
    margin: 0 0 12px 0;
    text-align: left;
  }

  .mobile-main-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0%;
    color: #525252;
    margin: 0 0 8px 0;
    text-align: left;
  }

  .mobile-course-card {
    background-color: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0px 4px 12px 0px #0000001A;
  }

  .mobile-course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: 0;
    border: none;
  }

  /* Mobile course header title and subtitle hierarchy */
  #mobile-course-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 120%;
    color: #101010;
    margin: 0 0 4px 0;
  }

  #mobile-course-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    color: #666666;
    margin: 0;
  }

  .campus-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #000;
  }

  .filter-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .filter-icon {
    color: #666;
  }

  .filter-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #000;
  }

  .campus-dropdown-container {
    position: relative;
    margin-bottom: 16px;
  }

  .campus-dropdown {
    width: 100%;
    padding: 12px 40px 12px 12px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #000;
    appearance: none;
    cursor: pointer;
  }

  .dropdown-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
  }

  .mobile-course-btn {
    width: 100%;
    padding: 12px;
    background: none;
    border: none;
    text-align: center;
    cursor: pointer;
  }


  /* Mobile drawer styles */
  #course-materials-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80vh;
    max-height: 80vh;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1001;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
  }

  #course-materials-sidebar.mobile-drawer-open {
    transform: translateY(0);
  }

  /* Show all-courses-section when mobile drawer is open */
  #course-materials-sidebar.mobile-drawer-open .all-courses-section {
    display: block !important;
  }

  /* Mobile drawer backdrop */
  #course-materials-sidebar::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }

  #course-materials-sidebar.mobile-drawer-open::before {
    opacity: 1;
  }

  /* Hide sidebar on desktop, show on mobile */
  #course-materials-sidebar {
    display: none;
  }

  /* Mobile drawer handle */
  .mobile-drawer-handle {
    display: flex;
    justify-content: center;
    padding: 8px 0;
    cursor: pointer;
    background-color: transparent;
  }

  .drawer-handle-bar {
    width: 40px;
    height: 4px;
    background-color: #ccc;
    border-radius: 2px;
    transition: background-color 0.2s ease;
  }

  .mobile-drawer-handle:hover .drawer-handle-bar {
    background-color: #999;
  }

  /* Show mobile drawer handle on mobile */
  .mobile-drawer-handle {
    display: flex !important;
  }

  /* Hide all-courses-section on desktop */
  .all-courses-section {
    display: none !important;
  }

  /* Mobile drawer section - Hidden on desktop by default */
  .mobile-drawer-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: fit-content;
    max-height: 70%;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1100;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    display: none !important; /* Force hidden on desktop */
    visibility: hidden !important;
    opacity: 0 !important;
  }

  /* Hide mobile drawer on desktop */
  @media (min-width: 769px) {
    .mobile-drawer-section {
      display: none !important;
    }
    
    .mobile-drawer-backdrop {
      display: none !important;
    }
  }

  /* Mobile drawer section - only show on mobile */
  @media (max-width: 768px) {
    .mobile-drawer-section {
      transform: translateY(0); /* Show by default on mobile */
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
    }
    
    .mobile-drawer-section.mobile-drawer-open {
      transform: translateY(0);
      z-index: 10001;
      min-height: 360px;
    }
    
  /* Show backdrop when drawer is open on mobile */
  .mobile-drawer-backdrop {
    display: block !important;
    opacity: 0; /* Start hidden */
  }
    
    .mobile-drawer-backdrop.show {
      opacity: 1;
      visibility: visible;
    }
  }


  /* Backdrop - Hidden on desktop by default */
  .mobile-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    display: block; /* Allow display on mobile */
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .mobile-drawer-backdrop.show {
    opacity: 1;
    visibility: visible;
    z-index: 10000;
  }

  .mobile-drawer-content {
    height: 100%;
    overflow-y: auto;
    padding: 0;
  }

  .mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
  }

  .mobile-drawer-header-content {
    flex: 1;
    margin-right: 16px;
  }

  .mobile-drawer-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #000;
    margin: 0 0 8px 0;
  }

  .mobile-drawer-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
  }

  .mobile-drawer-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    color: white;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .mobile-drawer-details {
    padding: 16px 12px 0;
  }

  .details-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #000;
    margin: 0 0 16px 0;
    text-transform: uppercase;
  }

  .mobile-form-group-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
  }

  .mobile-form-group {
    flex: 1;
  }

  .mobile-form-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #000;
    display: block;
  }

  /* Mobile Floating Label Container */
  .mobile-floating-label-container {
    position: relative;
  }
  .mobile-search-container{
    margin-bottom: 16px;
  }

  /* Mobile Floating Label Select */
  .mobile-form-select.floating-label {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #204A65;
    padding: 8px 32px 8px 10px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0%;
    color: #393a3a;
    background-color: #ffffff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
  }

  /* Mobile Floating Label Text */
  .mobile-floating-label-text {
    position: absolute;
    top: -8px;
    left: 8px;
    background-color: #ffffff;
    padding: 0 4px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0%;
    color: #204A65;
    pointer-events: none;
    z-index: 1;
  }

  .mobile-form-select.floating-label:focus {
    outline: none;
    border-color: #204A65;
    box-shadow: 0 0 0 1px #204A65;
  }

  .mobile-form-select.floating-label option {
    color: #204A65;
    margin-bottom: 8px;
  }

  .mobile-form-select {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #000;
    cursor: pointer;
    appearance: none;
    background-color: white;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
  }
  
  .mobile-form-select:hover {
    border-color: #204A65;
  }
  
  .mobile-form-select:focus {
    outline: none;
    border-color: #204A65;
    box-shadow: 0 0 0 2px rgba(32, 74, 101, 0.1);
  }
  
  /* Mobile Custom Dropdown Buttons */
  .mobile-custom-dropdown {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #204A65;
    padding: 8px 32px 8px 10px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0%;
    color: #393a3a;
    background-color: #ffffff;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    box-sizing: border-box;
  }
  
  .mobile-custom-dropdown::after {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
  }
  
  .mobile-custom-dropdown:hover {
    border-color: #204A65;
  }
  
  .mobile-custom-dropdown:focus {
    outline: none;
    border-color: #204A65;
    box-shadow: 0 0 0 2px rgba(32, 74, 101, 0.1);
  }
  
  .mobile-custom-dropdown:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
  }

  .mobile-search-input-container {
    position: relative;
  }

  .mobile-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
  }

  .mobile-course-search-input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    height: 40px;
    border: 1px solid #204A65;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #000;
    background-color: white;
  }

  /* Find Courses Search Field */
  .mobile-find-courses-search {
    width: 100%;
    padding: 12px 16px 12px 40px;
    height: 48px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #000;
    background-color: white;
    cursor: pointer;
    position: relative;
  }

  .mobile-find-courses-search:focus {
    outline: none;
    border-color: #204A65;
    box-shadow: 0 0 0 2px rgba(32, 74, 101, 0.1);
  }

  .mobile-find-courses-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    width: 20px;
    height: 20px;
  }

  /* Full Page Course Search Interface */
  .mobile-course-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    z-index: 1000000;
    display: none;
    flex-direction: column;
  }

  .mobile-course-search-overlay.active {
    display: flex;
  }

  .mobile-course-search-header {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 10001;
  }

  .mobile-course-search-title {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #101010;
    margin: 0;
    text-align: center;
    margin-bottom: 16px;
    margin-right: auto;
    text-align: left;
    letter-spacing: 0;
  }

  .mobile-course-search-close {
    background: #000;
    border: none;
    font-size: 16px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
  }

  .mobile-course-search-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 16px 32px 16px;
  }

  .mobile-course-search-input-section {
    padding: 0;
    border-bottom: none;
  }

  .mobile-course-search-input-full {
    width: 100%;
    padding: 10px 10px 10px 40px;
    height: 40px;
    border: 1px solid #204A65;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #000;
    background-color: white;
  }

  .mobile-course-search-input-full:focus {
    outline: none;
    border-color: #204A65;
    box-shadow: 0 0 0 2px rgba(32, 74, 101, 0.1);
  }

  .mobile-course-search-results {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    margin-top: 16px;
  }

  .mobile-course-search-item {
    height: 56px;
    padding: 16px 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 16px;
  }

  .mobile-course-search-item:last-child {
    border-bottom: none;
  }

  .mobile-course-search-item:hover {
    background-color: #f8f9fa;
  }

  .mobile-course-search-item-text {
    flex: 1;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 2%;
    vertical-align: middle;
    color: #080809;
  }

  .mobile-course-search-item-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    flex-shrink: 0;
  }

  .mobile-course-search-item-checkbox.checked {
    background-color: #204A65;
    border-color: #204A65;
  }

  .mobile-course-search-item-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
  }

  .mobile-course-search-actions {
    padding: 16px;
    border-top: none;
    background-color: white;
    display: flex;
    gap: 10px;
    border-top: 1px solid #CED2D3;
  }

  .mobile-course-search-cancel {
    flex: 1;
    height: 40px;
    gap: 6px;
    border-radius: 4px;
    padding: 10px 16px;
    border: 1px solid #204A65;
    background-color: white;
    color: #404040;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: 2%;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-course-search-next {
    flex: 1;
    height: 40px;
    gap: 6px;
    border-radius: 4px;
    padding: 10px 16px;
    border: 1px solid transparent;
    background-color: #204A65;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: 2%;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-course-search-next.active {
    background-color: #204A65;
    color: white;
    cursor: pointer;
  }

  .mobile-course-search-next.active:hover {
    background-color: #1a3d52;
  }

  /* Mobile Submit Button States */
  .mobile-btn-primary {
    padding: 12px 48px;
    border: none;
    border-radius: 8px;
    background-color: #ccc;
    color: #666;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: not-allowed;
    transition: all 0.2s;
    width: 100%;
    max-width: 200px;
  }

  .mobile-btn-primary.active {
    background-color: #000;
    color: white;
    cursor: pointer;
  }

  .mobile-btn-primary.active:hover {
    background-color: #333;
  }

  /* Selected Course Tags */
  .mobile-selected-courses {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 20px;
  }

  .mobile-course-tag {
    display: inline-flex;
    align-items: center;
    background-color: #F3F5F7;
    border-radius: 100px;
    padding: 6px 16px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #393A3A;
    gap: 8px;
  }

  .mobile-course-tag-text {
    flex: 1;
  }

  .mobile-course-tag-remove {
    background: none;
    border: none;
    color: #183B67;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
  }

  .mobile-course-tag-remove:hover {
    color: #000;
  }

  /* Mobile drawer modifications for Find Courses */

  .mobile-find-courses-section {
    margin-bottom: 16px;
  }

  .mobile-find-courses-input-wrapper {
    position: relative;
    margin-bottom: 16px;
  }

  .mobile-find-courses-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    height: 40px;
    border: 1px solid #204A65;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #000;
    background-color: white;
    cursor: pointer;
  }

  .mobile-find-courses-input:focus {
    outline: none;
    border-color: #204A65;
    box-shadow: 0 0 0 2px rgba(32, 74, 101, 0.1);
  }

  .mobile-find-courses-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    width: 20px;
    height: 20px;
  }



  .mobile-drawer-actions {
    padding: 16px 12px;
    border-top: 1px solid #e0e0e0;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
  }

  .mobile-student-id-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .mobile-student-id-input-wrapper {
    flex: 1;
    width: 50%;
  }

  .mobile-form-input-plain {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #204A65;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #000;
    background-color: white;
    box-sizing: border-box;
    height: 40px;
  }

  .mobile-form-input-plain::placeholder {
    color: #999;
  }

  .mobile-btn-primary {
    padding: 12px 24px;
    background-color: #204A65;
    border: 1px solid #204A65;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: white;
    cursor: pointer;
    text-transform: uppercase;
    white-space: nowrap;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
  }

  .mobile-btn-primary:hover {
    background-color: #0f2a4d;
  }


  .loading-spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #204A65;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

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

/* Additional mobile fix for very small screens */
@media (max-width: 360px) {
  .material-view-more {
    width: 100%;
    min-width: auto;
  }

  .view-more-btn {
    font-size: 13px;
    gap: 3px;
  }

  .view-more-btn .chevron-down {
    width: 14px;
    height: 14px;
  }
}

/* Utility Classes */
.mb-4 {
  margin-bottom: 1rem;
}

/* Mobile styles */
@media screen and (max-width: 968px) {
  .mobile\:block.desktop\:hidden {
    justify-content: center;
  }
  
  .breadcrumb-navigation {
    display: none;
  }
  
  .right-panel-header {
    padding-top: 0;
  }
  
  #mobile-course-trigger {
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  
  /* New mobile course actions layout */
  .mobile-course-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    gap: 16px;
  }
  
  .mobile-course-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    height: 32px;
    background-color: #204A65;
    color: #ffffff !important;
    border: 1px solid #204A65;
    border-radius: 4px;
    padding: 6px 12px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 1;
  }
  
  .mobile-course-btn:hover {
    background: #1a3d52;
  }
  
  .mobile-course-icon {
    width: 14px;
    height: 14px;
  }
  
  .mobile-course-secondary-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .mobile-share-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: Roboto;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0%;
    vertical-align: middle;
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-offset: 0%;
    text-decoration-thickness: 0%;
    color: #080909;
  }
  
  .mobile-share-link:hover {
    color: #204A65;
  }
  
  .mobile-share-icon {
    width: 14px;
    height: 14px;
  }
  
  .mobile-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    gap: 6px;
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #141515;
    background: white;
    cursor: pointer;
    opacity: 1;
  }
  
  .mobile-filter-btn:hover {
    border-color: #204A65;
    background: #f8f9fa;
  }
  
  .mobile-filter-icon {
    width: 14px;
    height: 14px;
  }
}

/* FORCE HIDE MOBILE DRAWER ON DESKTOP - MUST BE LAST */
@media (min-width: 769px) {
  .mobile-drawer-section,
  .mobile-drawer-backdrop {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateY(100%) !important;
    pointer-events: none !important;
  }
}
