/*!
Theme Name: CoursePerks Template
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: pcsedu-template
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/
.woocommerce-notices-wrapper{
    display:none !important;
}
#post-38 .page-title{
    margin-bottom:0 !important;
}
#post-38 .entry-content{
    padding-top:0 !important;
}
#cfw-payment-method{
    padding-bottom:0 !important;
}
.checkoutwc, .checkoutwc *{
	font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont,
	               'Segoe UI', Arial, sans-serif;
}
.cfw-grid .container, .cfw-grid .container-lg, .cfw-grid .container-md, .cfw-grid .container-sm, .cfw-grid .container-xl, .cfw-grid .container-xxl{
	max-width: initial !important;
}

.checkoutwc a{
	color:var(--brand) !important;
	font-size:14px;
}
.checkoutwc .woocommerce-privacy-policy-text{
	font-size:13px;
	line-height: 1.5em;
}
.checkoutwc .cfw-items-summary-item-discount del {
	font-size: .85rem;
	color: #6a6f73;
}
.checkoutwc .cfw-items-summary-item-discount ins{
	font-size: 1rem;
    color: #1c1d1f;
    text-decoration: none;
    margin-right: 10px;
}

.checkoutwc .cfw-cart-item-title{
	font-size: .875em !important;
	font-weight: 600 !important;
    color: var(--colorText);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* line-height: 1.5; */
    min-height: 1.5em;
}

.checkoutwc .cfw_cart_item_after_data {
	display: none !important;
}

.checkoutwc .cfw-cart-item-image .cfw-cart-item-image-wrap img{
	width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    border:0 !important;
}


/* 1) Dập scrollbar do wrapper của CheckoutWC */
#cfw-cart-summary-coupons .wrapper{
  overflow: hidden !important;      /* đổi từ auto -> hidden */
}

/* 2) Ép row không tràn ngang */
#cfw-cart-summary-coupons .cfw-promo-row{
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
}

/* 3) Cho cột input co lại trong flex (min-width:0 là mấu chốt) */
#cfw-cart-summary-coupons .cfw-promo-row .col-8{
  flex: 1 1 auto;
  min-width: 0;
}
#cfw-cart-summary-coupons .cfw-promo-row .col-4{
  flex: 0 0 auto;
}

/* 4) Input không được width:100% kiểu gây tràn */
#cfw-cart-summary-coupons input[type="text"]{
  width: 100% !important;
  box-sizing: border-box;
}


.woocommerce form .form-row .select2-container .select2-selection, 
.woocommerce form .form-row .input-text{
	border:1px solid #bdbfc2 !important;
}

.woocommerce ul.order_details{
	padding-left:0 !important;
}

.woocommerce .woocommerce-order a{
	color: var(--brand);
	text-decoration: none;
	font-size:14px;

}

.entry-content .woocommerce-table.order_details.shop_table{
	padding:10px !important;
}
.entry-content .woocommerce-customer-details address{
	padding:20px !important;
}

/* ===============================
   THANK YOU - ORDER OVERVIEW FIX
   =============================== */

.woocommerce-order-overview {
  list-style: none !important;
  margin: 25px 0 !important;
  padding: 0 !important;

  display: flex !important;
  flex-wrap: wrap;
  gap: 14px;
}

/* từng item */
.woocommerce-order-overview li {
  flex: 1 1 220px;
  min-width: 220px;

  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 16px 18px;

  font-size: 14px;
  color: #444;

  box-shadow: 0 4px 12px rgba(0,0,0,.04);

  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* label */
.woocommerce-order-overview li {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #666;
  text-align: center;
}

/* value */
.woocommerce-order-overview li strong {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  text-transform: none;
}

/* Total highlight */
.woocommerce-order-overview__total {
  background: rgba(109,40,217,.07);
  border: 1.5px solid rgba(109,40,217,.35);
}

.woocommerce-order-overview__total strong {
  font-size: 18px;
  color: #6d28d9;
}

/* Order number highlight */
.woocommerce-order-overview__order strong {
  color: #6d28d9;
}

/* Payment method */
.woocommerce-order-overview__payment-method strong {
  color: #0f766e;
}

/* Mobile */
@media (max-width: 600px) {

  .woocommerce-order-overview li {
    width: 100%;
    min-width: unset;
  }
}

.woocommerce ul.order_details::after, .woocommerce ul.order_details::before{
	content:"";
	display: none !important;
}

.woocommerce ul.order_details li:last-of-type, .woocommerce ul.order_details li{
	border: 1px solid rgba(0, 0, 0, .08) !important;
	margin:0 !important;
	border-radius: 5px !important;
}

#cfw{
	padding:0 !important;
	margin:0;
}


/* ===========================
   UDEMY-LIKE MY ACCOUNT (Woo)
   Target markup:
   .woocommerce
   .woocommerce-MyAccount-navigation
   .woocommerce-MyAccount-content
   =========================== */

/* --- Variables (tùy bạn đổi) --- */
:root{
  --ua-bg: #f6f7fb;
  --ua-card: #fff;
  --ua-border: rgba(17,24,39,.10);
  --ua-text: #111827;
  --ua-muted: #6b7280;
  --ua-primary: #6d28d9;          /* tím */
  --ua-primary-weak: rgba(109,40,217,.10);
  --ua-radius: 14px;
  --ua-shadow: 0 10px 25px rgba(17,24,39,.08);
}

/* ===============================
   ONLY MY ACCOUNT PAGE
   =============================== */

/* Remove Woo clearfix */
.woocommerce-account.logged-in .woocommerce::before,
.woocommerce-account.logged-in .woocommerce::after{
  display: none !important;
}

/* Reset float Woo default */
.woocommerce-account.logged-in .woocommerce-MyAccount-navigation,
.woocommerce-account.logged-in .woocommerce-MyAccount-content{
  float: none !important;
  width: auto !important;
}

/* ===============================
   GRID LAYOUT (Sidebar + Content)
   =============================== */

@media (min-width: 992px){
  .woocommerce-account.logged-in .woocommerce{
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    gap: 18px !important;
    align-items: start !important;
  }
}

/* Card style */
.woocommerce-account.logged-in .woocommerce-MyAccount-navigation,
.woocommerce-account.logged-in .woocommerce-MyAccount-content{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,.06);
}

/* ===============================
   SIDEBAR MENU
   =============================== */

.woocommerce-account.logged-in .woocommerce-MyAccount-navigation{
  overflow: hidden;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul{
  list-style: none;
  margin: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-navigation a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  color: #111827;
  transition: all .15s ease;
}

/* Hover */
.woocommerce-account.logged-in .woocommerce-MyAccount-navigation a:hover{
  background: rgba(109,40,217,.06);
  transform: translateY(-1px);
}

/* Active */
.woocommerce-account.logged-in .woocommerce-MyAccount-navigation .is-active > a,
.woocommerce-account.logged-in .woocommerce-MyAccount-navigation a[aria-current="page"]{
  background: rgba(109,40,217,.10);
  color: #6d28d9;
}

/* Active dot */
.woocommerce-account.logged-in .woocommerce-MyAccount-navigation .is-active > a::before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6d28d9;
}

/* Logout red */
.woocommerce-account.logged-in .woocommerce-MyAccount-navigation-link--customer-logout a{
  color: #dc2626;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-navigation-link--customer-logout a:hover{
  background: rgba(220,38,38,.08);
}

/* ===============================
   MOBILE MENU CHIPS
   =============================== */

@media (max-width: 991.98px){
  .woocommerce-account.logged-in .woocommerce-MyAccount-navigation{
    margin-bottom: 14px;
  }

  .woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul{
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .woocommerce-account.logged-in .woocommerce-MyAccount-navigation a{
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    padding: 10px 12px;
  }
}

/* ===============================
   CONTENT AREA
   =============================== */

.woocommerce-account.logged-in .woocommerce-MyAccount-content{
  padding: 20px;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content p{
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content a{
  color: #6d28d9;
  font-weight: 700;
  text-decoration: none;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content a:hover{
  text-decoration: underline;
}



.entry-content{
	padding:30px 0 !important;
}

.woocommerce-account .addresses .title .edit{
	float:left !important;
}

a{
	color:var(--brand);
	text-decoration: none;
}
a:hover{
	color:var(--brandhover);
}
.entry-content p, .entry-content li{
	font-size:14px;
}

