/*
Theme: OceanWP Child
Parent CSS loads via functions.php (not @import)
*/

/* Checkout BG */
body.edd-checkout{
  background-image:url(https://shop.polyversemusic.com/wp-content/uploads/2023/10/checkout_background_2023.jpg) !important;
}

/* Checkout container */
body.edd-checkout #primary{
  border-radius:10px;
  width:100% !important;
  max-width:1440px;
  margin:0 auto;
}
/* Fieldsets: force bg and no border */
body.edd-checkout #edd_checkout_form_wrap fieldset{
  background:none !important;
  border:0 !important;
  border-width:0 !important;
  box-shadow:none !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 10px 20px !important;
}

/* Submit group stays transparent, no border */
body.edd-checkout #edd_checkout_form_wrap #edd_purchase_submit fieldset{
  background:transparent !important;
  border:0 !important;
}

/* CC fields explicit */
body.edd-checkout #edd_checkout_form_wrap fieldset#edd_cc_fields{
  background:none !important;
  border:0 !important;
}

/* Headings */
#h-plv-checkout,.h2-plv-checkout{
  font-size:45px;font-weight:300;line-height:1;
  border-bottom:1px solid rgba(153,123,219,.28);
  padding-bottom:22px;margin-bottom:25px;
}
#h-checkout{display:none}

/* Cross-sell */
.cross-sell-offers{
  display:flex;flex-wrap:wrap;gap:20px;justify-content:center;
  margin-bottom:15px;
  margin-top: 32px;
}
.cross-sell-offers .offer{
  background-color:#253046;border-radius:10px;padding:15px;box-sizing:border-box;
  flex:1 1 calc(25% - 20px);display:flex;flex-direction:column;position:relative;overflow:hidden;
  background-size:cover;background-position:center;
}
.cross-sell-offers .offer::before{
  content:"";position:absolute;inset:0;background-color:#253046;opacity:.85;z-index:0;transition:opacity .4s ease
}
.cross-sell-offers .offer:hover::before{opacity:.7}
.cross-sell-offers .offer>*{position:relative;z-index:1}
.cross-sell-offers .offer .ribbon{
  position:absolute;top:6px;left:-60px;transform:rotate(-45deg);padding:5px 60px;
  font:bold 12px/1 sans-serif;color:#fff;z-index:2;pointer-events:none
}
.cross-sell-offers .offer .ribbon-new{background-color:#29B6F666}
.cross-sell-offers .offer .ribbon-deal{background-color:#E91E6366}
.cross-sell-offers .offer .ribbon-text{display:inline-block;transform-origin:center;animation:textSwing 4s ease-in-out infinite}
@keyframes textSwing{0%,50%,100%{transform:rotate(-5deg)}25%,75%{transform:rotate(5deg)}}
.cross-sell-offers .offer-title{color:#fff;font:18px 'Oswald',sans-serif;text-align:center;margin:auto 0}
.cross-sell-offers .offer-title strong{color:#fff}
.cross-sell-offers .offer-description{color:#FFFFFFAA;font-size:13px;text-align:center;margin:10px 0}
.cross-sell-offers .offer-price{font-family:'Oswald',sans-serif;display:flex;justify-content:center;align-items:baseline;margin:0 0 12px}
.cross-sell-offers .offer-price .old-price{color:rgba(255,255,255,.6);text-decoration:line-through;margin-right:8px;font-size:14px}
.cross-sell-offers .offer-price .new-price{color:#fff;font-size:20px;font-weight:700}
.cross-sell-offers .offer-button{text-align:center;margin-top:0}
.cross-sell-offers .offer-button a:hover{color: #fff !important;}
.offer-add{
  align-self:center;background-color:#e7682c;display:inline-block;padding:10px 20px;border-radius:5px;
  color:#fff;text-decoration:none !important;letter-spacing:1px;font-weight:bold;position:relative;overflow:hidden;transition:box-shadow .3s ease
}
.offer-add::before{
  content:"";position:absolute;top:0;left:-100%;width:100%;height:200%;
  background:linear-gradient(90deg,transparent 0%,transparent 49.5%,rgba(255,255,255,.5) 50%,transparent 70%,transparent 100%);
  animation:streak 10s infinite
}
@keyframes streak{0%,1%{transform:translateX(0%) skewX(25deg);opacity:1}10%,100%{transform:translateX(200%) skewX(25deg);opacity:1}}
.offer:nth-child(1) .offer-add::before{animation-delay:0s}
.offer:nth-child(2) .offer-add::before{animation-delay:.3s}
.offer:nth-child(3) .offer-add::before{animation-delay:.6s}
.offer:nth-child(4) .offer-add::before{animation-delay:.9s}
.offer:nth-child(5) .offer-add::before{animation-delay:1.1s}
.offer-add:hover{box-shadow:0 0 0 2px #e7a8ac}

/* Cross-sell responsive */
@media (max-width:900px){.cross-sell-offers .offer{flex:1 1 calc(50% - 20px)}}
@media (max-width:600px){.cross-sell-offers .offer{flex:1 1 100%}}

/* Cart header + rows */

.edd-blocks-form__cart #edd_checkout_cart{border:none !important}
.edd_cart_item{border-bottom:1px solid rgba(153,123,219,.28)}
.edd-blocks-form__cart .edd-blocks-cart__items,
.edd-blocks-form__cart .edd-blocks-cart__row-header{border-bottom:1px solid rgba(153,123,219,.28) !important}

/* Remove icons */
.edd-blocks-form__cart .edd-blocks-cart__action-remove,
.edd-blocks-form__cart .edd_discount_remove{
  background-image:url(data:image/svg+xml;base64,CjxzdmcgZmlsbD0iI2ZmZiIgd2lkdGg9IjgwMHB4IiBoZWlnaHQ9IjgwMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLDE4YTEsMSwwLDAsMCwxLTFWMTFhMSwxLDAsMCwwLTIsMHY2QTEsMSwwLDAsMCwxMCwxOFpNMjAsNkgxNlY1YTMsMywwLDAsMC0zLTNIMTFBMywzLDAsMCwwLDgsNVY2SDRBMSwxLDAsMCwwLDQsOEg1VjE5YTMsMywwLDAsMCwzLDNoOGEzLDMsMCwwLDAsMy0zVjhoMWExLDEsMCwwLDAsMC0yWk0xMCw1YTEsMSwwLDAsMSwxLTFoMmExLDEsMCwwLDEsMSwxVjZIMTBabTcsMTRhMSwxLDAsMCwxLTEsMUg4YTEsMSwwLDAsMS0xLTFWOEgxN1ptLTMtMWExLDEsMCwwLDAsMS0xVjExYTEsMSwwLDAsMC0yLDB2NkExLDEsMCwwLDAsMTQsMThaIi8+PC9zdmc+) !important
}

/* Discount link button */
#edd_show_discount .edd-button-secondary.edd_discount_link,
.edd-button-secondary.edd_discount_link{
  background-color:#5c6e93;color:#fff;border-radius:5px;margin:0;padding:7px 10px;border:0;cursor:pointer;text-align:center;letter-spacing:1px;line-height:1
}

/* Inputs */

#edd_checkout_form_wrap input[type=submit]{background-color:#e57132;color:#fff;font-weight:600;font-size:16px;}

/* Totals and labels */
.edd_cart_fee .edd_checkout_list_price{display:none}
.edd_checkout_cart_item_title,.edd_cart_item_price,.edd_cart_fee_label,.edd_cart_fee_amount{font-size:18px}
.edd-blocks-cart__row.edd-blocks-cart__row-header.edd_cart_header_row .edd_cart_item_name,
.edd-blocks-cart__row.edd-blocks-cart__row-header.edd_cart_header_row .edd_cart_item_price{
  font-size: 0px;
  font-family: 'Oswald';
  font-weight: 300;
  color: #ccddff;
  visibility: hidden;
}
.edd-blocks-cart__row.edd-blocks-cart__row-header.edd_cart_header_row .edd_cart_item_name::after{
  font-size: 20px;
  font-family: 'Oswald';
  font-weight: 300;
  color: #ccddff;
  content: "Your Cart";
  visibility: visible;
}
.edd_cart_total{font-size:24px;font-weight:400 !important}

/* Messages, footer alignment */
#edd_checkout_form_wrap .edd-description{margin-top:4px !important; color:#757d8e !important; font-size: smaller;}
#edd_checkout_form_wrap fieldset p:last-child{margin-bottom:10px}
.edd-blocks-form__cart .edd-blocks-cart__row-footer>div:only-child{flex-grow:0 !important;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.edd-discount{display:flex;padding:13px;border-radius:5px;background-color:rgb(50 229 182 / 36%);gap:10px}
.edd_discount_remove:after{display:none !important}
.edd_cart_footer_row:not(.edd_cart_discount_row){justify-content:end !important}

/* Gateway buttons */
:root { --stripe-primary: #9873e6; }

.wp-block-edd-checkout #edd-payment-mode-wrap label.edd-gateway-option,
.wp-block-edd-checkout #edd-payment-mode-wrap label.edd-gateway-option:hover{
  font-size:16px !important;
  border-radius: 5px !important;
  justify-content:center !important;
  justify-items: center !important;
  background-color:#202633 !important;
  border:none !important;
  color: #5c6e93;
}

.wp-block-edd-checkout #edd-payment-mode-wrap label.edd-gateway-option-selected,
.wp-block-edd-checkout #edd-payment-mode-wrap label.edd-gateway-option-selected:hover{
    border:1px solid !important;
}

.wp-block-edd-checkout #edd-payment-mode-wrap label.edd-gateway-option.edd-gateway-option-selected,
.wp-block-edd-checkout #edd-payment-mode-wrap label.edd-gateway-option:hover
{
    background-color:#5c6e93 !important;
    color: #fff;
    background-color: #fff;
    fill: #fff;
}


/* Layout for the checkout block */
.wp-block-edd-checkout{display:grid; grid-template-columns:1fr 1fr !important;}
.wp-block-edd-checkout>* {grid-column: auto !important;}
.wp-block-edd-checkout>p{grid-column:1 / -1;margin:0 color:#757d8e;}
@media (max-width:860px){.wp-block-edd-checkout{grid-template-columns:1fr}}

/* Old-price visibility on wide screens */
@media (min-width:700px){
  .edd_checkout_list_price{
    display:block !important;position:relative !important;left:0;top:50%;
    transform:scale(.8) !important;text-decoration:line-through;opacity:.8;order:-1 !important
  }
}

/* === NEW: Fieldsets, totals, tables, inputs, Stripe === */
#edd_checkout_form_wrap fieldset{background:#28344cdd;border:0;border-radius:10px}
#edd_checkout_form_wrap #edd_purchase_submit fieldset{background:none}
#edd_checkout_form_wrap fieldset#edd_cc_fields{background:#28344cdd;border:0}

#edd_checkout_form_wrap #edd_final_total_wrap{
  font-size:large;padding-top:35px;padding-left:0;border:none;background-color:transparent;color:#fff
}
#edd_checkout_form_wrap #edd-discount-code-wrap{border:0}
#edd_checkout_form_wrap #edd_show_discount{background-color:transparent;border:0;color:#fff}
#edd_checkout_form_wrap #edd_purchase_submit{
    display: flex;
    row-gap: 16px;
    flex-direction: column;
    padding:20px !important
}

#edd_checkout_form_wrap #edd_purchase_form legend{
  color:#cdf;
  border:none;
  font-family:Oswald,sans-serif;
  font-weight:300;
  font-size: 20px;
}

#edd_checkout_form_wrap .edd-cart-adjustment,
#edd_checkout_form_wrap #edd_final_total_wrap{background-color:transparent;color:#fff}

#edd_checkout_cart .edd_cart_discount_row th{color:#f9ad6c}
#edd_checkout_cart .edd_cart_header_row th{background-color:#233d65;color:#fff}
#edd_checkout_cart th{border:0}
#edd_checkout_cart th:first-child{border-radius:10px 0 0 0}
#edd_checkout_cart th:last-child{border-radius:0 10px 0 0} /* fixed stray token */
#edd_checkout_cart th.edd_cart_total{color:#fff}

#edd_checkout_cart td{
  text-align:left;color:#fff;border-top:0;border-left:0;border-right:0;border-color:#2d3748dd;vertical-align:middle
}
#edd_checkout_cart td span{vertical-align:sub}

/* Inputs general + selects */
#edd_checkout_form_wrap input,
#edd_checkout_form_wrap select{
  border-color:#384356;background-color:#202633;border-radius:5px;color:#fff
}

/* Stripe Elements */
#edd_checkout_form_wrap #edd-stripe-card-element,
#edd_checkout_form_wrap #edd-stripe-card-exp-element,
#edd_checkout_form_wrap #edd-stripe-card-cvc-element{
  border-color:#384356;background-color:#202633;border-radius:5px;color:#fff;padding:9.61px 6px;font-family:inherit
}
#edd_checkout_form_wrap #edd-stripe-card-element input{font-size:33px}

/* Placeholders */
#edd_checkout_form_wrap input::placeholder{color:#777;opacity:1}
:-ms-input-placeholder{color:#aaa}
::-ms-input-placeholder{color:#aaa}

/* Misc */
.edd-payment-icons svg{margin-right:5px}
.edd-icon{filter:invert(100%) sepia(100%) saturate(611%) hue-rotate(-26deg) brightness(100%) contrast(100%)}
.edd-discount-code-field-wrap .edd-apply-discount{margin-top:10px;margin-left:0}
#edd_checkout_wrap{margin-bottom:40px;font-size:18px}
form input[type=number]{color:#fff}

/* Receipt table reset */
.edd-receipt-custom table,
.edd-receipt-custom table tr,
.edd-receipt-custom table td,
.edd-receipt-custom table th{
  border:0 !important;border-style:none !important;border-color:transparent !important;box-shadow:none !important;background:none !important;background-image:none !important
}

/* Mobile cart table labels */
@media (max-width:700px){
  #edd_checkout_cart thead tr{position:absolute;top:-9999px;left:-9999px}
  #edd_checkout_cart td{display:block;position:relative;padding-left:40%;text-align:right;font-weight:normal}
  #edd_checkout_cart td::before{
    position:absolute;left:6px;width:35%;text-align:left;padding-right:10%;display:block;white-space:nowrap;font-weight:bold
  }
  #edd_checkout_cart td:nth-of-type(1):before{content:"Item Name"}
  #edd_checkout_cart td:nth-of-type(2):before{content:"Item Price"}
  #edd_checkout_cart td:nth-of-type(3):before{content:" "}
  #affwp-custom-link-generator{background:#000}
}

#edd_terms_agreement{
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
}

/* Neutralize OceanWP sidebar offsets on checkout */
@media only screen and (min-width:960px){
  body.edd-checkout.page.content-both-sidebars .content-area,
  body.edd-checkout.page.content-both-sidebars.scs-style .content-area,
  body.edd-checkout.page.content-both-sidebars.ssc-style .content-area{
    position:static !important;
    left:auto !important;
    right:auto !important;
    float:none !important;
    width:100% !important;
    max-width:1440px;
    margin-left:auto !important;
    margin-right:auto !important;
    border-left-width:0 !important;
    transform:none !important;
  }

  /* Hide sidebars on checkout so they don't reserve width */
  body.edd-checkout.page.content-both-sidebars .widget-area{
    display:none !important;
    width:0 !important;
  }
}

/* Also ensure the wrappers stay centered */
body.edd-checkout .content-wrap,
body.edd-checkout #primary{
  margin-left:auto !important;
  margin-right:auto !important;
}


/* one row, equal-width columns */
.trust-badges {
    align-self: center;
    max-width: 400px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: stretch;
    justify-content: stretch;
    padding: 8px 0;
    margin: 20px auto 10px auto;
    overflow: hidden;
}
.trust-footer {
  flex: 0 0 100%;
  order: 99;                            /* ensure last */
  text-align: center;
  margin-top: 8px;
}
.trust-col {
    flex: 1 1 0%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;            /* allow shrinking */
    text-align: center;
}
.trust-col a { line-height: 0; text-decoration: none; }
.trust-col picture, .trust-col img { display: block; max-width: 100%; height: auto; }
.trust-col img { max-height: var(--badge-max-h); width: auto; }

/* vertical stack for Stripe + PayPal */
.badge-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.badge-stack img { max-height: calc(var(--badge-max-h) / 2 - 5px); }

/* optional hover micro-motion */
.trust-col a { transition: transform .12s ease-in-out, filter .12s ease-in-out; }
.trust-col a:hover { transform: translateY(-2px); filter: brightness(1.06); }
#edd_cc_address{grid-template-columns:1fr;}

#edd_checkout_form_wrap label{
  font-weight: normal !important;
}

#edd_checkout_form_wrap #edd_payment_mode_select,
#edd_checkout_form_wrap #edd_checkout_user_info{
    padding-top: 7px;
}

/* ========= Global floating labels for EDD checkout ========= */
#edd_purchase_form .edd-blocks-form__group{ position:relative; padding-bottom:20px; }

/* Inputs/selects get top padding for the inline label */
#edd_purchase_form .edd-input,
#edd_purchase_form .edd-select{
  padding:18px 12px 6px !important;
  line-height:1.3;
}

/* Place label inside the field box */
#edd_purchase_form .edd-label{
  position:absolute; left:12px; top:15px; margin:0; pointer-events:none;
  transform-origin:left top;
  transition:transform .16s ease, color .16s ease, opacity .16s ease, top .16s ease;
  color:#9aa3b6; opacity:.9;
}

/* Helper text inside the box bottom */
#edd_purchase_form .edd-description{
  position:absolute; left:12px; bottom:6px; margin:0 !important;
  font-size:12px !important; color:#454c5d !important; opacity:.9; pointer-events:none;
}

/* Hide placeholders until focus */
#edd_purchase_form .edd-input::placeholder{ opacity:0; transition:opacity .12s ease; }
#edd_purchase_form .edd-blocks-form__group:focus-within .edd-input::placeholder{ opacity:.65; }

body.edd-checkout #edd_checkout_form_wrap fieldset input[type=text]{
  padding:18px 11px 6px 11px !important;
}

/* Float on focus */
/* Persist float when filled */
#edd_purchase_form .edd-blocks-form__group:focus-within .edd-label,
#edd_purchase_form .edd-blocks-form__group:has(.edd-input:not(:placeholder-shown)) .edd-label,
#edd_purchase_form .edd-blocks-form__group:has(.edd-input:-webkit-autofill) .edd-label,
#edd_purchase_form .edd-blocks-form__group:has(.edd-select:valid) .edd-label{
  transform:translate(0px, -4px) scale(.85); top:6px; opacity:.95; color:#cfe0ff;
}

/* Focus ring (optional) */
#edd_purchase_form .edd-input:focus,
#edd_purchase_form .edd-select:focus{
  outline:none; box-shadow:0 0 0 2px rgba(152,115,230,.35); border-color:#9873e6 !important;
}

/* Exclude radios/checkboxes from padding/float */
#edd_purchase_form input[type=radio],
#edd_purchase_form input[type=checkbox]{ padding:initial !important; }

/* Guard: do not affect Stripe iframe container */
#edd_purchase_form #edd-stripe-payment-element .edd-label{ position:static; transform:none; }

/* Inline label inside the Country <select> */
#edd-card-country-wrap{ position: relative; }

/* fix field height to match others if needed */
#edd-card-country-wrap .edd-select{
  --label-pad: 15ch;              /* space reserved for "Billing Country:" */
  --field-h: 44px;
  padding: 12px 12px 12px var(--label-pad) !important;
  height: var(--field-h);
  line-height: calc(var(--field-h) - 24px);
  -webkit-appearance: none; appearance: none;
}

/* place the label inside the frame, static */
#edd-card-country-wrap .edd-label{
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);    /* center vertically */
  margin: 0;
  pointer-events: none;
  color: #9aa3b6;
  opacity: .95;
  font-size: 14px;
}

/* add the colon */
#edd-card-country-wrap .edd-label::after{ content: ":"; margin-left: 2px; }

/* keep required asterisk tight */
#edd-card-country-wrap .edd-required-indicator{ margin-left: 2px; }

/* cancel any global floating rules for this one */
#edd-card-country-wrap.edd-blocks-form__group:focus-within .edd-label,
#edd-card-country-wrap.edd-blocks-form__group:has(.edd-select:valid) .edd-label{
  top: 36% !important;
  transform: translateY(-50%) !important;
  color: #9aa3b6 !important;
}

.edd-blocks__checkout-user {
    margin-bottom: 0 !important;
}
.edd-blocks-form__cart .edd-blocks-cart__row,.edd-blocks-form__cart .edd_cart_footer_row {
    padding: 10px !important;
}

.edd-blocks-form__cart .edd_cart_item_name {
    gap: 4px !important;
    padding: 2px !important;
}

.boxed-layout #wrap,.separate-layout .content-area,.separate-layout .widget-area .sidebar-box,
body.separate-blog.separate-layout #blog-entries >*,
body.separate-blog.separate-layout .oceanwp-pagination,
body.separate-blog.separate-layout .blog-entry.grid-entry .blog-entry-inner,.has-parallax-footer:not(.separate-layout) #main {
  background-color: #171c26bf !important;
}

body.edd-checkout #content-wrap{
  padding-top: 80px !important;
}

body.edd-checkout #site-header-inner{
  padding-top: 5px !important;
}