/*
Theme Name: Uncode Child
Description: Child theme for Uncode theme
Author: Undsgn™
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/

/* == SIDEBAR MENU STYLING & FIXES == */

.menu-sidebar-inner {
	margin-top: 80px
}
.menu-smart li.menu-group-link {
  margin-top: 16px;;
}

/* == FOOTER FIXES == */

.style-dark .input-background input[type="email"]{
  border-color: #33cd32;
}

/* == GENERAL TYPOGRAPHY FIXES -- */

.text-lead, .text-lead:not(ul):not(ol) > *, .text-lead > *:not(ul):not(ol):not(li) {
    margin: 18px 0px 0px 0px;
    line-height: 1.4;
}



/* == EVENTS LISTING PAGE STYLE ADJUSTMENTS == */

/* Page width adjustments */
@media (min-width:961px){
  .tribe-common .tribe-common-l-container {
    max-width: 1200px;
    padding-left: 36px;
    padding-right: 36px;
    width: 100%;
}
}


/* -- EVENTS LISTINGS ON MOBILE -- */

@media (max-width:960px){
  .tribe-common .tribe-common-l-container {
    padding-top: 24px !important;
    padding-bottom: 36px !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
    width: 100% !important;
}

.tribe-events-calendar-list
  .tribe-events-calendar-list__event-row
  + .tribe-events-calendar-list__event-row {
  padding-top: 24px !important;
  border-top: 1px dotted #33cd32 !important;
}

.tribe-events-header {
    display:none !important;
  }

.tribe-events-calendar-list__event-date-tag {
  display: none !important;
}

  .tribe-events-calendar-list__event-datetime, 
  .tribe-events-calendar-list__event-venue-title,
  .tribe-events-calendar-list__event-venue-address,
  .tribe-events-c-small-cta, 
  .tribe-events-c-small-cta__link,
  .tribe-events-calendar-list__event-cost,
  .tribe-events-c-small-cta__price
   {
    font-size: 16px !important;
  }
  
  a.tribe-events-c-small-cta__link {
    color: #ff6e06 !important;
    border-bottom: 1px solid #ff6e06 !important;
  }

  .tribe-events-calendar-list__event-title {
    font-size: 24px !important;
    line-height: 1.2 !important;
    padding-bottom: 24px !important;
  }
}

body .tribe-common--breakpoint-medium.tribe-events .tribe-events-l-container,
body .tribe-common--breakpoint-medium.tribe-common .tribe-common-l-container {
  max-width: 1200px;
  padding-left: 0px;
  padding-right: 0px;
  min-height: 700px;
  padding-bottom: 36px;
  padding-top: 36px;
  width:100%;
}

/* spacing around the month heading */
.tribe-events .tribe-events-calendar-list__month-separator{
  margin: 24px 0 8px;   /* adjust to taste */
  border: 0;            /* if your theme adds a rule */
}

/* text style of "October 2025" */
.tribe-events .tribe-events-calendar-list__month-separator-text{
  font-size: 1.5rem;      /* size */
  line-height: 1.2;
  font-weight: 700;     /* weight */
  letter-spacing: 0;    /* tracking */
}

/* Remove subscribe to calendar dropdown */
.tribe-events .tribe-events-c-subscribe-dropdown__container,
.tribe-events .tribe-events-c-subscribe-dropdown__container {
  display: none !important;
}



/* == SINGLE EVENT PAGE STYLE ADJUSTMENTS == */

#tribe-events-pg-template {
  max-width: 1272px;
  padding: 36px;
}

@media (max-width: 960px) {
  #tribe-events-pg-template {
  padding: 0px;
}
}

@media (min-width: 960px) {
.tec-event-details {
  padding-top: 0px;
  padding-left: 72px !important;
}
}

/* Meta list */

.tec-meta{margin:0}
.tec-row{display:grid;grid-template-columns:130px 1fr;gap:.75rem;padding:.6rem 0;border-bottom:1px solid #eee}
.tec-row dt{font-weight:600}

@media (max-width:960px){
  .tec-two-col .tec-grid{
    grid-template-columns:1fr
    }
  .tec-two-col .tec-aside{
    grid-row:auto
    }
  .tec-row{
    grid-template-columns:1fr
    }
  }

.tec-date {
  margin-top: 0px;
}
.tec-time {
  margin-top: 8px;
}

/* Hide Extra Ticket Boxes on Desktop */
@media (min-width: 961px) {
  #tickets-main {
    display: none !important;
  }
}

/* Tickets Styling */

@media (min-width: 601px){
  .tribe-tickets__tickets-wrapper .tribe-tickets__tickets-item{
    display:flex !important; flex-wrap:wrap; align-items:center; gap:.5rem 1rem;
  }
  .tribe-tickets__tickets-item .tribe-tickets__tickets-item-content-title-container{ flex:1 1 100%; margin:0 !important; }
  .tribe-tickets__tickets-item .tribe-tickets__tickets-item-extra{ order:2; display:inline-flex; gap:1.25rem; align-items:baseline; margin:0 !important; }
  .tribe-tickets__tickets-item .tribe-tickets__tickets-item-quantity{ order:3; margin-left:auto; position:relative; z-index:2; }
}

/* === Tickets Box Styling === */

.event-tickets .tribe-tickets__tickets-form {
    background-color: rgba(51, 205, 50, 0.05);
    border-color: #33cd32;
}
   
/* === Tickets Commerce: tidy layout (title top line; meta left; qty right) === */

/* Make each ticket row a 2-col, 2-row grid */
.tribe-tickets__tickets-wrapper .tribe-tickets__tickets-item{
  display:grid !important;
  grid-template-columns: 1fr auto;
  grid-auto-rows: auto;
  row-gap:.5rem;
  align-items:center;
}

/* Row 1: title spans full width */
.tribe-tickets__tickets-item .tribe-tickets__tickets-item-content-title-container{
  grid-column:1 / -1 !important;
  grid-row:1 !important;
  margin:0 !important;
}
.tribe-tickets__tickets-item .tribe-tickets__tickets-item-content-title{
  margin:0 !important;
}

/* Row 2 (left): price + availability */
.tribe-tickets__tickets-item .tribe-tickets__tickets-item-extra{
  grid-column:1 !important;
  grid-row:2 !important;
  display:inline-flex;
  gap:1rem;
  align-items:baseline;
  position:static !important;   /* prevent any absolute/overlay behaviour */
  margin:0 !important;
}

/* Row 2 (right): quantity controls */
.tribe-tickets__tickets-item .tribe-tickets__tickets-item-quantity{
  grid-column:2 !important;
  grid-row:2 !important;
  justify-self:end;
  margin:0 !important;
}

/* Optional: tone down availability */
.tribe-tickets__tickets-item .tribe-tickets__tickets-item-extra-available{
  opacity:.8;
  font-size:.9em;
}

/* ==== EVENT TICKET BUTTON STYLINE === */

/* === Only the main CTA button === */
.tribe-tickets__tickets-wrapper #tribe-tickets__tickets-buy {
  background-color: #ff6e06;    /* primary */
  border: 1px solid #ff6e06;
  border-color:     #ff6e06;
  color: #fff;
}
.tribe-tickets__tickets-wrapper #tribe-tickets__tickets-buy:hover,
.tribe-tickets__tickets-wrapper #tribe-tickets__tickets-buy:focus {
  background-color: #ffffff !important;    /* primary */
  border: 1px solid #ff6e06 !important;
  border-color:     #ff6e06 !important;
  color: #ff6e06 !important;
}
/* Disabled state */
.tribe-tickets__tickets-wrapper #tribe-tickets__tickets-buy[disabled] {
   background-color: #717171;    /* primary */
  border-color:     #717171;
  color: #fff;
  cursor: disabled;
}

/* === Keep quantity +/- looking default (undo any prior styling) === */
.tribe-tickets__tickets-wrapper .tribe-tickets__tickets-item-quantity-add,
.tribe-tickets__tickets-wrapper .tribe-tickets__tickets-item-quantity-remove {
  background: transparent;            /* or 'none' */
  color: inherit;                      /* use theme text color */
}
.tribe-tickets__tickets-wrapper .tribe-tickets__tickets-item-quantity-add:hover,
.tribe-tickets__tickets-wrapper .tribe-tickets__tickets-item-quantity-remove:hover,
.tribe-tickets__tickets-wrapper .tribe-tickets__tickets-item-quantity-add:focus,
.tribe-tickets__tickets-wrapper .tribe-tickets__tickets-item-quantity-remove:focus {
  background: rgba(0,0,0,0.06);        /* subtle hover; tweak as needed */
}

.event-tickets .tribe-tickets__tickets-title {
  color: #33cd32;
}

/* Back link */
.tec-back { margin: 0 0 .5rem; }
.tec-back__link {
  font-size: .95rem;
  text-decoration: none;
  opacity: .8;
}
.tec-back__link:hover { text-decoration: underline; opacity: 1; }

.event-tickets .tribe-tickets__tickets-item {
    align-items: center;
    border-top: 1px dotted #33cd32;
    display: grid;
    -ms-grid-columns: 10fr 1fr;
    -ms-grid-rows: 1fr 1.5fr;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    margin: 0;
    padding: 4px 0 0px;
}

.event-tickets .tribe-tickets__tickets-footer {
    align-items: baseline;
    border-top: 1px solid #33cd32;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
    padding: var(--tec-spacer-4) 0 0;
}

/* === CART PAGE STYLINE === */

/* Register Attendees Button */
.wc-proceed-to-checkout .checkout-button {
  background-color: #ff6e06 !important;    /* primary */
  border-color:     #ff6e06 !important;
  color: #fff !important;
}
.wc-proceed-to-checkout .checkout-button:not(.btn-hover-nobg):not(.icon-animated):not(.btn-flat):hover:hover {
  background-color: #ffffff !important;    /* primary */
  border-color:     #ff6e06 !important;
  color: #ff6e06 !important;
}

/* === REGISTRATION PAGE STYLING === */

/* Fix width and padding */

@media (min-width: 961px) {
    body.page-tribe-attendee-registration .tribe-tickets__registration {
        margin: auto;
        max-width: 1272px;
    }
}

@media (min-width: 961px) {
    body.page-tribe-attendee-registration .event-tickets .tribe-tickets__registration-actions, body.page-tribe-attendee-registration .tribe-common .tribe-tickets__registration-actions {
        margin: 0 auto 36px;
    }

body.page-tribe-attendee-registration .tribe-tickets__registration {
    padding: 0;
}
}

@media (max-width: 960px) {
  body.page-tribe-attendee-registration .event-tickets .tribe-tickets__registration-actions, body.page-tribe-attendee-registration .tribe-common .tribe-tickets__registration-actions {
    margin: 0 auto 0px;
  }

  body.page-tribe-attendee-registration .tribe-tickets__registration {
    padding: 0;
  }
}

/* Attendee Box Styling */

.entry .entry-content .event-tickets .tribe-tickets__attendee-tickets-item,
.event-tickets .tribe-tickets__attendee-tickets-item {
    background-color: none;
    border: 0;
    border-width: 0;
    padding: 0px;
    margin:0;
    box-shadow: 0;
}
.event-tickets .tribe-tickets__attendee-tickets-item:before,
.event-tickets .tribe-tickets__attendee-tickets-item:after {
  width: 0;
  height: 0;
}


/* Attendee Registration Typography */

.event-tickets .tribe-common-h2 {
  font-size: 29px;
  line-height: 1.1em;
  letter-spacing: -0.03em;
  font-weight: 600;
  font-family: helvetica-neue-lt-pro, sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  }

.event-tickets .tribe-tickets__attendee-tickets-item-title {
  font-size: 24px;
  color: #33cd32;
  letter-spacing: -0.03em;
  font-weight: 600;
  font-family: helvetica-neue-lt-pro, sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Input Label Styling */

@media (min-width: 961px){
.event-tickets .tribe-tickets__attendee-tickets-item.tribe-tickets__form .tribe-tickets__form-field-label {
  margin-top: 7px;
}
}
@media (max-width: 960px){
.event-tickets .tribe-tickets__attendee-tickets-item.tribe-tickets__form .tribe-tickets__form-field-label {
  margin-top: 0px;
}
}

/* Input Box Styling */

.event-tickets .tribe-tickets__form .tribe-common-form-control-text__input, 
.event-tickets .tribe-tickets__form input[type=text],
.event-tickets .tribe-tickets__form input[type=email]:invalid,
.event-tickets .tribe-tickets__form input[type=email]:valid {
  border: none;
  padding: 8px;
  border-bottom: 1px solid rgb(234, 234, 234);
  border-radius: 0;
}

aside.tribe-tickets__mini-cart {
  display:none;
}

/* Save & Checkout Button Styling */

.tribe-common button.tribe-common-c-btn--small {
  background-color: #ff6e06;    /* primary */
  border-color:     #ff6e06;
  color: #fff; 
}

.tribe-common button.tribe-common-c-btn--small:hover,
.tribe-common button.tribe-common-c-btn--small:focus {
  background-color: #ffffff !important;    /* primary */
  border-color:     #ff6e06 !important;
  color: #ff6e06 !important;
}

@media (max-width: 960px){
  .tribe-common button.tribe-common-c-btn--small {
    width: 100%;
  }
}

/* === CHECKOUT STYLINE === */

.place-order .checkout-button {
  background-color: #ff6e06 !important;    /* primary */
  border-color:     #ff6e06 !important;
  color: #fff !important;
}
.place-order .checkout-button:not(.btn-hover-nobg):not(.icon-animated):not(.btn-flat):hover:hover {
  background-color: #ffffff !important;    /* primary */
  border-color:     #ff6e06 !important;
  color: #ff6e06 !important;
}

/* === ORDER RECEIVED === */

.shop_table.order_details {
  width: 100% !important;
}

/* Let the product name span the whole row */
body.woocommerce-order-received .shop_table.order_details td.woocommerce-table__product-name {
  width: 100%;
}

body.woocommerce-order-received .shop_table.order_details thead th.product-name {
  width: auto !important;
  text-align: left;
}
/* Thank You / Order Received page: left-align all order details */
body.woocommerce-order-received .shop_table.order_details,
body.woocommerce-order-received .shop_table.order_details th,
body.woocommerce-order-received .shop_table.order_details td,
body.woocommerce-order-received .shop_table.order_details tfoot th,
body.woocommerce-order-received .shop_table.order_details tfoot td {
  text-align: left !important;
}

/* WooCommerce mobile labels */
body.woocommerce-order-received .shop_table.order_details td::before {
  text-align: left !important;
}

/* Prices sometimes get floated/right-aligned by themes */
body.woocommerce-order-received .shop_table.order_details .woocommerce-Price-amount,
body.woocommerce-order-received .shop_table.order_details .amount {
  display: inline-block;
  float: none !important;
  text-align: left !important;
}

/* Nested attendee meta tables inside the product cell */
body.woocommerce-order-received .shop_table.order_details .tribe-attendee-meta th,
body.woocommerce-order-received .shop_table.order_details .tribe-attendee-meta td {
  text-align: left !important;
}
.woocommerce:not(.order-table-with-thumbs) .shop_table .order_item:first-child td {
  padding-top:8px;
  padding-bottom: 8px;
}

table.tribe-attendee-meta {
  border-left: 0px;
  border-right: 0px;
  margin-bottom: 24px;
}