/* OSTOSKORITAULUKKO */
#ostoskoritaulukko{
	font-family:Verdana,"Lucida Grande",Arial,"Trebuchet MS","Bitstream Vera Sans",Geneva,Helvetica,sans-serif;
	border: 1px solid #B6B6B6;
	width: 100%;
	border-spacing: 0px;
	margin-bottom: 20px;
	font-size: 0.8em;
	hyphens: auto;
}

#ostoskoritaulukko td{
	border: 1px solid #fff;
	padding: 0.1em;
	text-align: left;
	background-color: #F3F3F3;
}


#ostoskoritaulukko th{
	border: 1px solid #fff;
	font-weight: bold;
	background: #8A8A8A;
	text-align: left;
	padding: 3px 5px;
	color: #fff;
}

#ostoskoritaulukko .header_row{
	border: 1px solid #fff;
	font-weight: bold;
	background: #8A8A8A;
	text-align: left;
	padding: 3px 5px;
}

#ostoskoritaulukko .footer_row td{
	font-weight: bold;
	background-color: #EAEAEA;
}

a.reloadChart, a.emptyChart {
	font-family:Verdana,"Lucida Grande",Arial,"Trebuchet MS","Bitstream Vera Sans",Geneva,Helvetica,sans-serif;
	padding: 3px 20px 3px 24px;
	font-weight: bold;
	float: right;
	line-height: 20px;
}

a.shareCart {
	font-family:Verdana,"Lucida Grande",Arial,"Trebuchet MS","Bitstream Vera Sans",Geneva,Helvetica,sans-serif;
	padding: 7px 20px 0px 30px;
	font-weight: bold;
	float: left;
	line-height: 20px;
}

a.reloadChart {
	background: transparent url("../fsdd_images/adminpanel/iconReload.png") no-repeat 0 4px;
}

a.shareCart {
	background: transparent url("../fsdd_images/icon_envelope.png") no-repeat 0 4px;
}

a.emptyChart {
	color: red;
	background: transparent url("../fsdd_images/adminpanel/iconPoista.png") no-repeat 0 4px;
}



/* TILAUSVAIHEET */

ul#tilausvaiheet2 {
	font-family:Verdana,"Lucida Grande",Arial,"Trebuchet MS","Bitstream Vera Sans",Geneva,Helvetica,sans-serif;
	margin: 0;
	padding: 0 0;
	list-style: none;
	display: block;
	float: left;
	width: 100%;
	background: transparent url("../fsdd_images/tilausBallsBg.png") repeat-x 35px 31px;
    font-size: 14px;
    line-height: 25px;
}

ul#tilausvaiheet2 li{
	text-align:center;
	width: 25%;
	float: left;
	font-size: 14px;
	line-height: 25px;
	color: #AFAFAF;
	display: block;
	padding:0 0 15px 0;
	text-decoration: none;
	background: transparent url("../fsdd_images/tilausBallNew.png") no-repeat 50% bottom;
}

ul#tilausvaiheet2 li.active {
	background-image: url("../fsdd_images/tilausBallSelNew.png");
	color: #4D4D4D;
}

ul#tilausvaiheet2 li.complete {
	background-image: url("../fsdd_images/tilausBallCompleteNew.png");
}

#tilausButtonsArea {
	font-family:Verdana,"Lucida Grande",Arial,"Trebuchet MS","Bitstream Vera Sans",Geneva,Helvetica,sans-serif;
	margin-top: 10px;
	border-top: 1px solid #e1e1e1;
	padding: 10px 0;
	clear: both;
}


#tilausButtonsArea a.check, #tilausButtonsArea a.back, #tilausButtonsArea a.checkAbort, #tilausButtonsArea a.continue_shopping {
	box-sizing: border-box;
	border: 1px solid #C6C6C6;
	font-size: 14px;
	font-weight: bold;
	line-height: 20px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	padding: 5px 15px 6px 10px;
	margin: 0 5px;
	background: transparent url("../fsdd_images/tilausButtonsNeutralBg.png") repeat-x 50%;
}

#tilausButtonsArea a.check:hover, #tilausButtonsArea a.back:hover, #tilausButtonsArea a.checkAbort:hover, #tilausButtonsArea a.continue_shopping:hover { text-decoration:none; background-image: url("../fsdd_images/tilausButtonsNeutralBgHover.png"); }
#tilausButtonsArea a.check strong, #tilausButtonsArea a.back strong, #tilausButtonsArea a.checkAbort strong { padding-left: 25px; }
#tilausButtonsArea a.check { float: right; color: #369F1A; }
#tilausButtonsArea a.checkAbort { float: left; color: red; }
#tilausButtonsArea a.check strong { background: transparent url("../fsdd_images/adminpanel/iconTick.png") no-repeat 0 50%; }
#tilausButtonsArea a.checkAbort strong { background: transparent url("../fsdd_images/adminpanel/iconPoista.png") no-repeat 0 50%; }
#tilausButtonsArea a.back { float: right; color: #2779B3; }
#tilausButtonsArea a.back strong { background: transparent url("../fsdd_images/adminpanel/iconVasemmalle.png") no-repeat 0 50%; }
#tilausButtonsArea a.abort { font-size: 14px; font-weight: bold; line-height: 20px;color:red; float: left; background: transparent url("../fsdd_images/adminpanel/iconPoista.png") no-repeat 0 50%; padding: 6px 15px 6px 23px;}
#tilausButtonsArea a.back2order { font-size: 14px; font-weight: bold; line-height: 20px;color:#2779B3; float: right;  padding: 6px 0 6px 0;}
#tilausButtonsArea a.continue_shopping { float: left; color: black; }



/* KAUPPAPALSTAN YLEISET TYYLIT */

.clear {
	clear: both;
}

.orderReady { font-weight: bold; color: #369F1A; }
.tuotelinkki { padding: 0 0 10px 25px; font-style: italic; line-height: 24px; color:gray; background: transparent url("../fsdd_images/adminpanel/iconOikealle.png") no-repeat 0 5px; }
.tuotelinkki a { color: #2779B3; font-style: normal; }
.tuotelinkkiOld { color: red; font-style:normal; font-weight: bold;}

form {
	/*font-family:Verdana,"Lucida Grande",Arial,"Trebuchet MS","Bitstream Vera Sans",Geneva,Helvetica,sans-serif;*/
	margin:0;
	padding:0;
}

#shoppingcartForm .fh_element_error {
	border: 0;
	color:red;
}

#shoppingcartForm .fh_element_error strong {
	display: block;
	float: right;
	width: 63%;
	line-height: 25px;
	font-size: 13px;
	color: gray;
	font-weight: normal;
}


#shoppingcartForm {
	padding:0;
	margin:0;
}

#shoppingcartForm .fh_element {
	margin: 5px;
	width: 95%;
	clear: both;
}

#shoppingcartForm .fh_element .fh_label {
	text-align: right;
	font-weight: bold;
	display: block;
	float: left;
	width: 35%;
	padding: 3px 10px 10px 3px;;
	font-size: 1em;
}

#shoppingcartForm .fh_element .fh_input {
	width: 60%;
	font-size: 1em;
}


#shoppingcartForm .fh_element .fh_valinta {
	display: block;
}

.shoppingcart_error {
	font-size:15px;
	font-weight: bold;
	color: red;
}
#shopping_cart_footer {
	text-align: center;
}

/* TILAUKSEN PERUUTUSFORMI */


#fh_peruuta_tilaus .fh_element .fh_label {
	display:block;
	float:none;
	font-size:14px;
	font-weight:bold;
	padding-bottom:10px;
	padding-right:10px;
	text-align:left;
	width: 100%;
}

#fh_peruuta_tilaus .fh_element .fh_input {
	float:left;
	font-size:14px;
	width:80%;
}
#fh_peruuta_tilaus .fh_valinta{
	font-size:15px;
	height: 1.5em;
}

.paytrailProviderForm {
	display:inline-block;
}

.paymentProviderButton {
	background:white;
	border-radius:0.5em;
	width:10em;
	height:4.5em;
	margin:0.2em;
}
.paymentProviderButton img{
	width: 100%;
	height: 100%;
	margin:0;
	padding:0;
}
.paymentProviderButton:hover {
	background-color:#ccc;
}

/* ===================================
   TILAUS_SEURANTA — Order tracking
   =================================== */

/* Header */
.ts-header {
  position: relative;
  margin-bottom: 20px;
}

.ts-header h1 {
  margin: 0;
}

.ts-status {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  background: #e8f5e9;
  color: #2e7d32;
}

.ts-status-deleted {
  background: #e74c3c;
  color: #fff;
}


.ts-payment-notice {
  margin-top: 16px;
  padding: 16px 20px;
  background: #fff8f0;
  border: 1px solid #f0d0a0;
  border-radius: 8px;
}

.ts-payment-notice p {
  margin: 0 0 12px 0;
  font-size: 0.95rem;
  color: #333;
}

.ts-btn-large {
  display: inline-block;
  background: #e37119;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  margin-left: auto;
}

.ts-btn-large:hover { background: #c9600f; color: #fff; text-decoration: none; }

/* Cards */
.ts-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.ts-card {
  background: #fff;
  border: 1px solid #e8e0d0;
  border-radius: 10px;
  padding: 16px;
}

.ts-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8e0d0;
}

.ts-card-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e8e0d0;
}

/* Fields */
.ts-field {
  margin-bottom: 10px;
}

.ts-field-label {
  font-weight: 600;
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 2px;
}

.ts-field-value {
  font-size: 0.875rem;
  color: #222;
}

.ts-divider {
  border-top: 1px solid #e8e0d0;
  margin: 12px 0;
}

/* Timeline */
.ts-timeline {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ts-timeline-item {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}

.ts-timeline-item:last-child {
  border-bottom: none;
}

.ts-timeline-label {
  font-weight: 600;
  color: #555;
  font-size: 0.8rem;
}

.ts-timeline-value {
  color: #222;
}

/* Buttons */
.ts-actions {
  margin-top: 12px;
}

.ts-btn {
  display: inline-block;
  background: #e37119;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.ts-btn:hover { background: #c9600f; color: #fff; text-decoration: none; }
.ts-btn-secondary { background: #555; }
.ts-btn-secondary:hover { background: #333; }

.ts-extra {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.ts-extra.ts-extra-open {
  display: block;
}

/* Form overrides inside cards */
.ts-card .fh_element { display: block; margin-bottom: 8px; width: 100%; }
.ts-card .fh_element .fh_label { display: block; font-weight: 600; font-size: 0.8rem; margin-bottom: 3px; }
.ts-card .fh_input { width: 100%; padding: 8px 10px; border: 2px solid #e0e0e0; border-radius: 6px; font-size: 15px; box-sizing: border-box; }
.ts-card .fh_input:focus { border-color: #e37119; outline: none; }

.ts-card .fh_element.submit input[type="submit"] {
  width: 100% !important;
  height: auto !important;
  padding: 10px 16px !important;
  background: #e37119 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  margin-top: 8px !important;
}

.ts-card .fh_element.submit input[type="submit"]:hover {
  background: #c9600f !important;
}

@media (max-width: 768px) {
  .ts-cards { grid-template-columns: 1fr; }
  
.ts-payment-notice {
  margin-top: 16px;
  padding: 16px 20px;
  background: #fff8f0;
  border: 1px solid #f0d0a0;
  border-radius: 8px;
}

.ts-payment-notice p {
  margin: 0 0 12px 0;
  font-size: 0.95rem;
  color: #333;
}

.ts-btn-large { margin-left: 0; }
}
/* Order summary */
.order-summary { margin-bottom: 24px; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; }
.order-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid #f0f0f0; gap: 8px; }
.order-item:last-child { border-bottom: none; }
.order-item-name { flex: 1; font-size: 14px; }
.order-item-details { font-size: 13px; color: #666; white-space: nowrap; }
.order-item-price { font-weight: 600; white-space: nowrap; min-width: 70px; text-align: right; }
.order-item-shipping, .order-item-payment { background: #fafafa; font-size: 13px; color: #555; }
.order-total { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: #e8e8ee; color: #1a1a2e; font-weight: 700; font-size: 16px; border-top: 1px solid #d0d0d8; }
.order-total-price { font-size: 18px; }

/* Thankyou page */
.thankyou-delivery, .thankyou-review, .thankyou-tracking { margin-top: 1.5em; }
.thankyou-review-btn { display: inline-block; margin-top: 0.5em; padding: 0.6em 1.2em; background: #2d6bcf; color: #fff; text-decoration: none; border-radius: 4px; }
.thankyou-review-btn:hover { background: #1a4fa0; color: #fff; }
