/* 
* Custom utilities
*
*/

/* .checkout__section-box {
  border: 1px solid #d0d4d7;
}

/*  */
* UI Kit Overrrides
*
*/


label.uk-form-label {
  font-size: 14px;
  font-weight: 400;
}

.uk-breadcrumb>*>* {
  font-size: 1.5rem;
}


/* 
* Woocommerce Overrrides
*
*/

.woocommerce-MyAccount-navigation-link.fa{
  align-items: center;
  display: flex;
  gap: 10px;
}

/* WooCommerce Pagination Styles */
.woocommerce-pagination-wrapper {
    margin-top: 20px;
    text-align: center;
}

.woocommerce-pagination-wrapper .woocommerce-pagination nav {
    display: inline-block;
}

.woocommerce-pagination-wrapper ul.page-numbers {
    display: inline-flex;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 8px;
}

.woocommerce-pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.woocommerce-pagination-wrapper .page-numbers:hover {
    background-color: #f8f9fa;
    border-color: #3498db;
    color: #3498db;
}

.woocommerce-pagination-wrapper .page-numbers.current {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.woocommerce-pagination-wrapper .page-numbers.dots {
    background: none;
    border: none;
    color: #999;
    cursor: default;
    pointer-events: none;
}

/* Responsive pagination styles */
@media (max-width: 768px) {
    .woocommerce-pagination-wrapper .page-numbers {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* .woocommerce-page .woocommerce-checkout div#customer_details {
  width: 100%;
}

.woocommerce-page .woocommerce-checkout div.col2-set, .woocommerce-page.woocommerce-order-pay div.col2-set {
  width: 100%
}

.woocommerce #payment #place_order {
  background-color: #1e87f0; 
  color: #ffffff;
  border: 0;
  border-radius: 5px; 
  margin-top: 20px;
  padding: 20px 20px; 
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  width: 100%;
}


.woocommerce #payment #place_order:hover {
  background-color: #1b75cf; 
}

.woocommerce form div.form-row-first {
  width: 100%;
}

.woocommerce form div.form-row-last {
  width: 100%;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation li.is-active a {
  color: #fff;
}

.sidebar-wrapper {
  background-color: #2c375d;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation li.is-active a::before {
  content: '-'
}


.woocommerce #order_review_heading, .woocommerce-page #order_review_heading {
  margin-top: 0 !important;
}

.wp-element-button, a.button{
  background-color: #1e87f0;
  color: white;
  border-radius: 5px; 
}

.wp-element-button:hover, a.button:hover{
  background-color: #1b75cf;
  color: white;
}

.wp-element-button:visited {
  color: white;
}

button.woocommerce-form-login__submit {
  width: 100%;
  text-align: center;
}

.wp-block-post-title {
  display: flex;
  justify-content: center;
}

.woocommerce form .show-password-input::after, .woocommerce-page form .show-password-input::after {
  content: " " !important;
}

.woocommerce-cart #payment, .woocommerce-checkout #payment {
  background: #f6fbff;
} */

#goto_back {
  background-color: transparent;
  border:0;
}

/* View Order Additional Styles */
.order-back-link .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.order-totals-section {
  padding: 20px;
  background: #f8f9fa;
  border-top: 1px solid #e1e5e9;
}

.order-totals-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}

.order-totals-section .shop_table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.order-totals-section .shop_table th,
.order-totals-section .shop_table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e1e5e9;
}

.order-totals-section .shop_table th {
  font-weight: 500;
  color: #495057;
}

.order-totals-section .shop_table td {
  font-weight: 600;
  color: #2c3e50;
  text-align: right;
}

.order-addresses-section {
  padding: 20px;
  border-top: 1px solid #e1e5e9;
}

.order-addresses-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}

.addresses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.billing-address,
.shipping-address {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e1e5e9;
}

.billing-address h3,
.shipping-address h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
}

.billing-address address,
.shipping-address address {
  font-style: normal;
  line-height: 1.6;
  color: #495057;
  margin-bottom: 0;
}

.order-notes-section {
  padding: 20px;
  border-top: 1px solid #e1e5e9;
}

.order-notes-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
}

.woocommerce-OrderUpdates {
  padding: 0;
  margin: 0;
  list-style: none;
}

.woocommerce-OrderUpdate {
  background: #f8f9fa;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px;
}

.woocommerce-OrderUpdate-meta {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 8px;
  font-weight: 500;
}

.woocommerce-OrderUpdate-description {
  color: #495057;
  line-height: 1.6;
}

/* View Enrollment Specific Styles */
.enrollment-status-active {
  border-left: 4px solid #28a745;
}

.enrollment-status-processing {
  border-left: 4px solid #ffc107;
}

.enrollment-status-cancelled {
  border-left: 4px solid #dc3545;
}

.enrollment-status-completed {
  border-left: 4px solid #17a2b8;
}

.enrollment-status-expired {
  border-left: 4px solid #6c757d;
}

/* View Membership Specific Styles */
.membership-status-active {
  border-left: 4px solid #28a745;
}

.membership-status-scheduled {
  border-left: 4px solid #17a2b8;
}

.membership-status-cancel {
  border-left: 4px solid #dc3545;
}

.membership-status-expired {
  border-left: 4px solid #6c757d;
}

.membership-status-pending_activation {
  border-left: 4px solid #ffc107;
}

.membership-status-on_hold {
  border-left: 4px solid #fd7e14;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.status-active {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-badge.status-processing {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.status-badge.status-cancelled {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-badge.status-completed {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.status-badge.status-expired {
  background-color: #e2e3e5;
  color: #383d41;
  border: 1px solid #d6d8db;
}

.status-badge.status-scheduled {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.status-badge.status-cancel {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-badge.status-pending_activation {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.status-badge.status-on_hold {
  background-color: #ffeaa7;
  color: #856404;
  border: 1px solid #ffc107;
}

.enrollment_details th,
.membership_details th {
  font-weight: 600;
  color: #495057;
  width: 30%;
}

.enrollment_details td,
.membership_details td {
  color: #2c3e50;
}

.product-thumbnail .no-image i {
  color: #6f42c1;
  font-size: 32px;
}

.product-thumbnail .no-image i.fa-crown {
  color: #ffc107;
}

/* Course Grade Styles for Completed Courses */
.course-grade-info {
  margin-bottom: 15px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
}

.grade-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #495057;
}

.grade-item i {
  color: #6c757d;
  width: 16px;
}

.grade-passing {
  color: #28a745;
  font-weight: 600;
}

.grade-failing {
  color: #dc3545;
  font-weight: 600;
}

.grade-passing .fas.fa-check-circle {
  color: #28a745;
  margin-left: 4px;
}

.grade-failing .fas.fa-times-circle {
  color: #dc3545;
  margin-left: 4px;
}

/* Status colors for completed courses */
.course-info-item .value.status-completed {
  color: #28a745;
}

.course-info-item .value.status-failed {
  color: #dc3545;
}

.course-info-item .value.status-incomplete {
  color: #fd7e14;
}

.course-info-item .value.status-archived {
  color: #6c757d;
}

/* Responsive styles for view order and enrollment */
@media (max-width: 768px) {
  .addresses-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .order-totals-section .shop_table th,
  .order-totals-section .shop_table td,
  .enrollment_details th,
  .enrollment_details td,
  .membership_details th,
  .membership_details td {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .enrollment_details th,
  .membership_details th {
    width: 40%;
  }
  
  .course-grade-info {
    text-align: center;
  }
  
  .grade-item {
    justify-content: center;
  }
}