/*
html, body {
   height: 100%;
   margin: 0;
}

body {
   display: flex;
   flex-direction: column;
}


main {
   flex: 1;
}
*/

footer {
   background: #333;
   color: white;
   padding: 1rem;
   text-align: center;
}


.shop_table2 thead {
  display: none;
}

.woocommerce form .form-row .input-text,
.woocommerce form .form-row select {
   font-family: inherit;
   font-weight: 400;
	letter-spacing: normal;
   padding: .5em;
   display: block;
   background-color: #fff;
   border: 1px solid #aaa;
   border-radius: 4px;
   color: #000;
   box-sizing: border-box;
   width: 100%;
   margin: 0;
   line-height: normal;
   height: auto;
}

.woocommerce form .form-row {
   padding: 3px;
   margin: 0 0 18px;
}

.woocommerce form .form-row label {
   font-family: Roboto, sans-serif;
   font-size: 1.125rem;
	color: #454f59;
}

.select2-container {
   box-sizing: border-box;
	display: inline-block;
   margin: 0;
   position: relative;
   vertical-align: middle;
}

.select2-container .select2-selection--single .select2-selection__rendered {
   display: block;
   padding-left: 8px;
	padding-right: 20px;
   overflow: hidden;
   text-overflow: ellipsis;
   white-space: nowrap;
}

.select2-container .select2-selection--single .select2-selection__rendered {
   padding: .5em;
	line-height: normal;
   box-sizing: border-box;
   color: #444;
   font-weight: 400;
}

.select2-container .select2-selection--single {
   box-sizing: border-box;
   cursor: pointer;
   display: block;
   height: 35px;
   margin: 0 0 -4px;
   user-select: none;
   -webkit-user-select: none;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
   height: 33px;
   position: absolute;
   top: 1px;
   right: 1px;
   width: 20px;
}


.has-gray-background-color {
   background-color: #f5f7fa;
}

.shop_table--wrapper {
   padding: 1.875rem 1.875rem 0.875rem 1.875rem;
   border-radius: 0 0 16px 16px;
}

.shop_table2 td,
.shop_table2 th {
   padding: 1.125rem 0;
   font-size: 1.125rem;
   color: #454f59;
}

.shop_table2 {
   width: 100%;
   margin-bottom: 1.5rem;
}

.shop_table2 tbody tr,
.shop_table2 tfoot tr {
	border-top: 1px solid #d0d3d8;
}




._woocommerce-checkout {
	margin-top: 1.5rem;

}


.woocommerce-customer_details {
	flex: 1 1 0%;
	min-width: 0px;
}



.woocommerce-datauser {
	margin-top: 1.5rem;
 	width: 100%;
}


@media (min-width: 640px) {
   .woocommerce-datauser {
  		margin-top: 2rem;
   }
}

@media (min-width: 1024px) {
   .woocommerce-datauser {
      max-width: 20rem;
		margin-top: 0px;
   }
}

@media (min-width: 1280px) {
   .woocommerce-datauser {
      max-width: 28rem;
   }
}

@media (min-width: 640px) {
	._woocommerce-checkout {
      margin-top: 2rem;
   }
}


@media (min-width: 1024px) {
   ._woocommerce-checkout {
      display: flex;
		align-items: flex-start;
		gap: 3rem;
   }
}


@media (min-width: 1280px) {
   ._woocommerce-checkout {
      gap: 4rem;
   }
}







/***********************************
   Basic reset and typography
***********************************\/ */
.woocommerce {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

.woocommerce-order {
  max-width: 1200px;
  margin: 0.5rem auto 2rem auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/***********************************
   Success message
***********************************\/ */
.woocommerce-notice--success {
  background-color: #e6f9ef;
  border: 1px solid #c3edd8;
  color: #2a7f54;
  padding: 1rem 1.25rem;
  border-radius: 0.375rem;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/***********************************
   Order summary list
***********************************\/ */
.woocommerce-order-overview {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.woocommerce-order-overview__order,
.woocommerce-order-overview__date,
.woocommerce-order-overview__total,
.woocommerce-order-overview__payment-method {
  background: #f9f9f9;
  border-radius: 0.375rem;
  padding: 1rem;
  border: 1px solid #eee;
}

.woocommerce-order-overview__email {
   display: none;
}

.woocommerce-order-overview__order strong,
.woocommerce-order-overview__date strong,
.woocommerce-order-overview__total strong,
.woocommerce-order-overview__payment-method strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.15rem;
  color: #111;
}

/***********************************
   Downloads section
***********************************\/ */
.woocommerce-order-downloads__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #111;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

/***********************************
   Downloads table
***********************************\/ */
.woocommerce-table--order-downloads {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.75rem;
}

.woocommerce-table--order-downloads thead th {
  text-align: left;
  font-weight: 600;
  padding: 0.75rem 1rem;
  background: #fafafa;
  border-bottom: 2px solid #eee;
}

.woocommerce-table--order-downloads tbody tr {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  border-radius: 0.375rem;
}

.woocommerce-table--order-downloads tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
}

/* highlight product name */
.download-product strong {
  font-size: 1.1rem;
  color: #222;
}

/* download button */
.woocommerce-MyAccount-downloads-file.button {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 0.375rem;
  border: 1px solid #0071a1;
  background-color: #0071a1;
  color: #fff;
  transition: background-color 0.2s, border-color 0.2s;
}

.woocommerce-MyAccount-downloads-file.button:hover {
  background-color: #005f8b;
  border-color: #005f8b;
}

/* responsiveness */
@media (max-width: 600px) {
  .woocommerce-order-overview {
    grid-template-columns: 1fr;
  }

  .woocommerce-table--order-downloads thead {
    display: none;
  }

  .woocommerce-table--order-downloads tbody td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .woocommerce-table--order-downloads tbody td:before {
    content: attr(data-title) ": ";
    font-weight: 600;
    display: inline-block;
    width: 120px;
  }

  .woocommerce-table--order-downloads tbody tr {
    margin-bottom: 1rem;
  }


}

.woocommerce form p.submit-order-agreement {
   font-size: .6875rem;
   color: #454f59;
   margin: 1rem 1.25rem;
}

.woocommerce form p.submit-order-agreement a {
   font-weight: 700;
   text-decoration: underline;
}


/* Zamiast białej nakładki – ciemna, półprzezroczysta */
.checkout.woocommerce-checkout > .blockUI.blockOverlay {
   position: fixed !important; 
   top: 0;
   left: 0;
   background: rgba(0, 0, 0, 0.9) !important;
   width: 100%;
   height: 100%;
}

/* 2. Pseudo‑element jako spinner na środku */
.checkout.woocommerce-checkout > .blockUI.blockOverlay::after {
   content: "";
   position: absolute;
   top: 50%;
   left: 50%;
   width: 60px;
   height: 60px;
   margin: -30px 0 0 -30px;  /* przesunięcie o połowę rozmiaru */
   border: 6px solid rgba(255, 255, 255, 0.3);
   border-top-color: #ffffff;
   border-radius: 50%;
   animation: spin 1s linear infinite;
}


@keyframes spin {
   0%   { transform: rotate(0deg); }
   100% { transform: rotate(360deg); }
}