/* Moje konto */

/* strona konta: chowamy h1 z page.php (dublowałby nagłówki widoków),
   tło sekcji na beż, kontener szeroki jak na produktowej */
.woocommerce-account .singlepage__heading { display: none; }
.woocommerce-account .singlepage__content {
	background: #F2F0EB;
	padding: 22px 0 64px;
}
.woocommerce-account .singlepage__content > .container-medium { max-width: 1350px !important; }
.woocommerce-account .singlepage__content,
.woocommerce-account .ccd-acc {
	font-family: 'Ubuntu', sans-serif;
	color: #12131A;
}

/* ============ layout: sidebar + treść ============ */
.ccd-acc {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: flex-start;
}
.ccd-acc__sidebar { flex: 1 1 232px; min-width: 0; }
.ccd-acc__content {
	flex: 999 1 460px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ============ sidebar ============ */
.ccd-acc-nav {
	background: #fff;
	border-radius: 14px;
	padding: 18px 14px;
}
.ccd-acc-nav__user {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 12px 16px;
	border-bottom: 1px solid #EDEDED;
	margin-bottom: 12px;
}
.ccd-acc-nav__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #12131A;
	color: #21FA90;
	font-size: 15px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}
.ccd-acc-nav__id { min-width: 0; }
.ccd-acc-nav__name { display: block; font-size: 14px; font-weight: 500; }
.ccd-acc-nav__email {
	display: block;
	font-size: 12px;
	color: #767676;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ccd-acc-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ccd-acc-nav__list li { flex: 1 1 180px; }
/* !important: parent koloruje globalnie `a` (zieleń) i wygrywa kaskadę */
.ccd-acc-nav__list li a {
	display: flex;
	align-items: center;
	gap: 11px;
	font-size: 14px;
	text-decoration: none !important;
	border-radius: 10px;
	padding: 11px 12px;
	color: #12131A !important;
	transition: background .2s, color .2s;
}
.ccd-acc-nav__list li a:hover { background: #F2F0EB; color: #12131A !important; }
.ccd-acc-nav__list li.is-active a {
	background: #12131A;
	color: #fff !important;
	font-weight: 500;
}
.ccd-acc-nav__icon { width: 17px; height: 17px; flex: 0 0 auto; display: inline-flex; }

/* ============ wspólne ============ */
.ccd-acc-h1 { font-size: 30px; font-weight: 700; margin: 0; font-family: 'Ubuntu', sans-serif; }
.ccd-acc-sub { font-size: 14px; color: #767676; margin: 8px 0 0; }
.ccd-acc-label {
	font-size: 11px;
	letter-spacing: 1px;
	color: #767676;
	margin: 0 0 6px;
	text-transform: uppercase;
}
.ccd-acc-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	flex-wrap: wrap;
}
.ccd-acc-head__titlerow {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}
.ccd-acc-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ccd-acc-back {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	color: #767676 !important;
	text-decoration: none !important;
	margin-bottom: 10px;
}
.ccd-acc-back:hover { color: #12131A !important; }
.ccd-acc-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 15px;
	font-weight: 500;
	border-radius: 10px;
	padding: 13px 24px;
	text-decoration: none !important;
	border: 0;
	cursor: pointer;
	transition: .2s;
}
.ccd-acc-btn--primary { background: #21FA90; color: #12131A !important; }
/* hover wg konwencji rebrandingu: zielony -> #0A7D45 + biały (jak btn-cucudo) */
.ccd-acc-btn--primary:hover { background: #0A7D45; color: #fff !important; }
.ccd-acc-btn--ghost {
	background: #fff;
	border: 1px solid #C6C6C6;
	color: #12131A !important;
	padding: 12px 22px;
}
.ccd-acc-btn--ghost:hover { border-color: #12131A; }
.ccd-acc-btn--sm { font-size: 13px; padding: 9px 16px; border-radius: 10px; }
.ccd-acc-card {
	background: #fff;
	border-radius: 14px;
	padding: 24px;
}
.ccd-acc-card__title {
	font-size: 19px;
	font-weight: 500;
	margin: 0 0 20px;
	font-family: 'Ubuntu', sans-serif;
}
.ccd-acc-card__title--icon {
	font-size: 16px;
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 16px;
}
.ccd-acc-card__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}
.ccd-acc-card__head h2 {
	font-size: 16px;
	font-weight: 500;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 9px;
}
.ccd-acc-underlink {
	font-size: 13px;
	font-weight: 500;
	color: #12131A !important;
	text-decoration: none !important;
	border-bottom: 1px solid #12131A;
	padding-bottom: 2px;
}
.ccd-acc-underlink:hover { color: #0A7D45 !important; border-color: #0A7D45; }
.ccd-acc-help { text-align: center; font-size: 14px; color: #767676; margin: 6px 0 0; }
.ccd-acc-help a { font-weight: 500; color: #12131A; }
.ccd-acc-empty { font-size: 14px; color: #767676; margin: 0; }
.ccd-acc-card--empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

/* pill statusu */
.ccd-acc-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 100px;
	padding: 7px 15px;
	font-size: 13px;
	font-weight: 500;
	background: #EDEDED;
	color: #4A4A4A;
	white-space: nowrap;
}
.ccd-acc-pill__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex: 0 0 auto;
	background: #9a9a9a;
}
.ccd-acc-pill.is-pending    { background: #FFF4D6; color: #7A5A00; }
.ccd-acc-pill.is-pending    .ccd-acc-pill__dot { background: #FFB600; }
.ccd-acc-pill.is-processing { background: #E3EEF8; color: #0B5E94; }
.ccd-acc-pill.is-processing .ccd-acc-pill__dot { background: #2E90D1; }
.ccd-acc-pill.is-completed  { background: #E4F4EB; color: #0A7D45; }
.ccd-acc-pill.is-completed  .ccd-acc-pill__dot { background: #0A7D45; }
.ccd-acc-pill.is-cancelled  { background: #F6E7E4; color: #A03A2E; }
.ccd-acc-pill.is-cancelled  .ccd-acc-pill__dot { background: #C0492F; }

/* ============ kokpit ============ */
.ccd-acc-orderlist { display: flex; flex-direction: column; }
.ccd-acc-orderrow {
	display: grid;
	grid-template-columns: 90px 90px 1fr auto 20px;
	align-items: center;
	gap: 14px;
	padding: 14px 4px;
	border-bottom: 1px solid #EDEDED;
	text-decoration: none !important;
	color: #12131A;
	font-size: 14px;
}
.ccd-acc-orderrow:last-child { border-bottom: 0; }
.ccd-acc-orderrow:hover .ccd-acc-orderrow__go { transform: translateX(3px); }
.ccd-acc-orderrow__no { font-weight: 500; }
.ccd-acc-orderrow__date { color: #767676; }
.ccd-acc-orderrow__total { font-weight: 500; text-align: right; }
.ccd-acc-orderrow__go { color: #767676; transition: transform .2s; }
@media (max-width: 640px) {
	/* Numer + kwota w lewej kolumnie (jeden pod drugim, przy krawędzi kafla),
	   pigułka statusu w prawej, wyśrodkowana w pionie. */
	.ccd-acc-orderrow {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			'no    pill'
			'total pill';
		align-items: center;
		row-gap: 4px;
	}
	.ccd-acc-orderrow__date, .ccd-acc-orderrow__go { display: none; }
	.ccd-acc-orderrow__no { grid-area: no; }
	.ccd-acc-pill { grid-area: pill; align-self: center; justify-self: end; }
	.ccd-acc-orderrow__total { grid-area: total; text-align: left; }
}
.ccd-acc-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}
.ccd-acc-tile {
	background: #fff;
	border-radius: 14px;
	padding: 22px;
	text-decoration: none !important;
	color: #12131A;
	display: flex;
	flex-direction: column;
	gap: 6px;
	transition: transform .25s, box-shadow .25s;
}
.ccd-acc-tile:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 26px rgba(18,19,26,.08);
	color: #12131A;
}
.ccd-acc-tile__icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #E4F4EB;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 6px;
}
.ccd-acc-tile__title { font-size: 15px; font-weight: 500; }
.ccd-acc-tile__desc { font-size: 13px; color: #767676; }

/* ============ lista zamówień ============ */
.ccd-acc-orderlist--page { gap: 14px; }
.ccd-acc-ordercard {
	background: #fff;
	border-radius: 14px;
	padding: 20px 24px;
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}
.ccd-acc-ordercard__main {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	min-width: 220px;
}
.ccd-acc-ordercard__no {
	font-size: 16px;
	font-weight: 700;
	color: #12131A !important;
	text-decoration: none !important;
}
.ccd-acc-ordercard__no:hover { color: #0A7D45 !important; }
.ccd-acc-ordercard__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #767676;
	flex: 1 1 auto;
	flex-wrap: wrap;
}
.ccd-acc-ordercard__meta strong { color: #12131A; font-weight: 500; }
.ccd-acc-ordercard__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ccd-acc-pagination { display: flex; justify-content: space-between; gap: 10px; }

/* ============ widok zamówienia ============ */
.ccd-acc-payinfo {
	background: #FFF6DF;
	border: 1px solid #F0DFAC;
	border-radius: 14px;
	padding: 18px 22px;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}
.ccd-acc-payinfo svg { flex: 0 0 auto; }
.ccd-acc-payinfo p {
	flex: 1 1 220px;
	font-size: 14px;
	line-height: 1.55;
	color: #6E5100;
	margin: 0;
}
.ccd-acc-payinfo p strong { font-weight: 700; }
.ccd-acc-payinfo a {
	font-size: 13px;
	font-weight: 500;
	color: #6E5100 !important;
	text-decoration: underline !important;
	flex: 0 0 auto;
}
.ccd-acc-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1px;
	background: #EDEDED;
	border: 1px solid #EDEDED;
	border-radius: 14px;
	overflow: hidden;
}
.ccd-acc-meta__cell { background: #fff; padding: 18px; }
.ccd-acc-meta__cell .ccd-acc-label { margin-bottom: 6px; }
.ccd-acc-meta__val { font-size: 15px; font-weight: 500; margin: 0; }

.ccd-acc-item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding-bottom: 20px;
	margin-bottom: 20px;
	border-bottom: 1px solid #EDEDED;
	flex-wrap: wrap;
}
.ccd-acc-item__imgwrap { position: relative; flex: 0 0 auto; }
.ccd-acc-item__imgwrap img {
	width: 84px !important;
	height: 84px !important;
	object-fit: contain;
	padding: 8px;
	border-radius: 10px;
	background: #F2F0EB;
	display: block;
	border: 1px solid #EDEDED;
}
.ccd-acc-item__qty {
	position: absolute;
	top: -7px;
	right: -7px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #12131A;
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ccd-acc-item__body { flex: 1 1 220px; min-width: 0; }
.ccd-acc-item__name {
	font-size: 15px;
	font-weight: 500;
	color: #12131A !important;
	text-decoration: none !important;
	line-height: 1.4;
	display: inline-block;
	margin: 0 0 9px;
}
a.ccd-acc-item__name:hover { color: #0A7D45 !important; }
.ccd-acc-item__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ccd-acc-chip {
	font-size: 12px;
	background: #F2F0EB;
	border-radius: 10px;
	padding: 5px 10px;
	color: #4A4A4A;
}
.ccd-acc-chip > span { color: #767676; }
.ccd-acc-chip strong { font-weight: 500; color: #12131A; }
.ccd-acc-item__total { font-size: 16px; font-weight: 500; flex: 0 0 auto; }
.ccd-acc-totals {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 14px;
}
.ccd-acc-totals__row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
}
.ccd-acc-totals__row > span:first-child { color: #4A4A4A; }
.ccd-acc-totals__hint { color: #767676; }
.ccd-acc-totals__row--grand {
	align-items: baseline;
	border-top: 1px solid #EDEDED;
	padding-top: 14px;
	margin-top: 4px;
}
.ccd-acc-totals__row--grand strong { font-size: 16px; font-weight: 500; }
.ccd-acc-totals__grand { font-size: 22px !important; font-weight: 700 !important; }

.ccd-acc-machine {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding: 20px 24px;
}
.ccd-acc-machine__icon {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: #FFF3D6;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}
.ccd-acc-machine__body { flex: 1 1 220px; min-width: 0; }
.ccd-acc-machine__body .ccd-acc-label { margin-bottom: 4px; }
.ccd-acc-machine__code { font-size: 15px; font-weight: 500; margin: 0; }
.ccd-acc-machine__map {
	font-size: 13px;
	font-weight: 500;
	flex: 0 0 auto;
	color: #12131A !important;
}

.ccd-acc-addr {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}
.ccd-acc-addr__lines { font-size: 14px; line-height: 1.6; color: #12131A; }
.ccd-acc-addr__lines address { font-style: normal; margin: 0; }
.ccd-acc-addr__contact {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #EDEDED;
	font-size: 14px;
}
.ccd-acc-addr__contact span {
	display: flex;
	align-items: center;
	gap: 9px;
	color: #12131A;
}
.ccd-acc-addr__edit { margin-top: 16px; align-self: flex-start; }
.ccd-acc-addr--page .ccd-acc-card { display: flex; flex-direction: column; }
.ccd-acc-note { font-size: 14px; line-height: 1.6; color: #12131A; margin: 0; }

/* ============ pliki do pobrania ============ */
.ccd-acc-dlist { display: flex; flex-direction: column; gap: 14px; }
.ccd-acc-dl {
	background: #fff;
	border-radius: 14px;
	padding: 18px 22px;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.ccd-acc-dl__icon {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: #E4F4EB;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}
.ccd-acc-dl__body { flex: 1 1 220px; min-width: 0; }
.ccd-acc-dl__name { font-size: 15px; font-weight: 500; margin: 0 0 4px; }
.ccd-acc-dl__meta { font-size: 13px; color: #767676; margin: 0; }

/* ============ formularze (dane konta, adresy) ============ */
.ccd-acc-form { display: flex; flex-direction: column; gap: 20px; }
.ccd-acc-form__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0 18px;
}
.ccd-acc-form .form-row,
.ccd-acc .woocommerce-address-fields .form-row {
	display: block;
	margin: 0 0 16px;
	padding: 0;
	width: 100% !important;
	float: none !important;
}
.ccd-acc-form label,
.ccd-acc .woocommerce-address-fields label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #12131A;
	margin: 0 0 7px;
}
.ccd-acc-form .input-text,
.ccd-acc-form select,
.ccd-acc .woocommerce-address-fields .input-text,
.ccd-acc .woocommerce-address-fields select {
	width: 100%;
	font-size: 14px;
	border: 1px solid #C6C6C6;
	border-radius: 10px;
	padding: 13px 15px;
	background: #fff;
	color: #12131A;
	transition: border-color .2s, box-shadow .2s;
}
.ccd-acc-form .input-text:focus,
.ccd-acc .woocommerce-address-fields .input-text:focus,
.ccd-acc .woocommerce-address-fields select:focus {
	outline: 0;
	border-color: #0A7D45;
	box-shadow: 0 0 0 3px rgba(10,125,69,.12);
}
.ccd-acc-form__hint {
	display: block;
	font-size: 12px;
	color: #767676;
	margin-top: 6px;
}
.ccd-acc-form__submit { margin: 0; }
.ccd-acc-form .required { color: #C0492F; text-decoration: none; }
/* select2/chosen z wtyczek — dopasowanie ramek */
.ccd-acc .select2-container--default .select2-selection--single {
	border: 1px solid #C6C6C6;
	border-radius: 10px;
	height: auto;
	padding: 9px 12px;
}

/* ============ komunikaty Woo na koncie ============ */
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-error {
	border-radius: 14px;
	background: #fff;
	border: 1px solid #EDEDED;
	font-size: 14px;
	padding: 14px 18px;
}

/* ============ Moje kupony (WT Smart Coupons — treść wtyczki w naszej karcie) ============ */
.ccd-acc__content .wt-smart-coupon-myaccount,
.ccd-acc__content .wt_sc_coupons,
.ccd-acc__content [class*="wt_sc"] { font-family: 'Ubuntu', sans-serif; }
.ccd-acc__content .wt_sc_coupon_content { border-radius: 14px; }

/* ============ mobile ============ */
@media (max-width: 767px) {
	.ccd-acc__sidebar { flex-basis: 100%; }
	.ccd-acc-head__actions { width: 100%; }
	.ccd-acc-card { padding: 20px 16px; }
}
