/**
Theme Name: Hedenhus
Author: Hedenhus
Author URI: http://hedenhus.dk/
Description: CSS for DIY recipe pages
*/

/* recipe page styling */

.recipe-top-wrapper {
	display:inline-flex;
	float:right;
}
.recipe-headers {
	margin-top: 25px;
}
.save-recipe-button-wrapper {
	margin-left:10px;
}
.recipe-top-wrapper button {
	background-color:#FFFFFF;
	color:#000000;
}
.required-items-wrapper li {
	font-size:1.05em;
}
.recipe-scale-wrapper {
    font-weight: 500;
    margin: 1.5em 0 0.5em 0;
    display: flex;
    align-items: center;
}
#recipe-scale {
	width:60px !important;
	padding: 4px !important;
	margin: 0 5px;
}

.saved-recipes-inline-list {
    list-style: none;
    margin: 1em 0;
    padding: 0;
}
.must-log-in {
	margin-top:20px;	
}
@media only screen and (max-width: 768px) {
	.required-header {
		clear: both;
	}
}

.comment-list {
    margin-top: 2em;
    padding-left: 0;
    list-style: none;
}

.comment {
    margin-bottom: 1.5em;
    padding: 10px;
    border-left: 3px solid #eee;
    background: #fafafa;
}

.comment .reply {
    margin-top: 0.5em;
}

#respond {
    margin-top: 2em;
}

#respond textarea {
    width: 100%;
    min-height: 120px;
}

/* archieve page styling */
.recipe-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.recipe-search-form input[type="search"] {
    padding: 8px;
    flex: 1;
    min-width: 200px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.recipe-search-form button {
    padding: 8px 16px;
    background: #444;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.recipe-search-form button:hover {
    background: #222;
}


/* recipe page styling */
#recipe-ingredients {
	list-style: none;
	padding-left: 0;
}

/* Tabel-lignende layout — en linje per ingrediens på desktop */
.ingredient-line {
	display: flex;
	align-items: center;
	gap: 0.6em;
	padding: 0.5em 0.25em;
	border-bottom: 1px solid #eee;
}

/* Kolonne 1: mængde + navn + note */
.ingredient-main {
	flex: 0 0 60px;
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
  text-align: end;
	gap: 0.25em;
}

.ingredient-main .scaled-quantity {
	white-space: nowrap;
}

.ingredient-name {
	display: inline-flex;
	flex: 0 0 180px;
	align-items: center;
	font-weight: 700;
}

.ingredient-main a {
	color: #0073aa;
	text-decoration: none;
}

.ingredient-main a:hover {
	text-decoration: underline;
}

.ingredient-main small {
	color: #666;
}

/* Kolonne 2: variant/pris info */
.variant-match-message {
	flex: 1;
	min-width: 0;
	font-size: 0.85em;
	color: #444;
	line-height: 1.4;
}

.recipe-oos {
	color: #c0392b;
	font-size: 0.85em;
	font-weight: normal;
}

.recipe-oos-notice {
	color: #c0392b;
	font-size: 0.85em;
}

/* Kolonne 3: knap */
.add-ingredient-to-cart {
	flex: 0 0 auto;
	white-space: nowrap;
}

/* Mobil og tablet: stak kolonner lodret */
@media (max-width: 768px) {
	.ingredient-line {
		flex-wrap: wrap;
		align-items: flex-start;
	}

	.ingredient-main {
		flex: 0 0 100%;
	}

	.variant-match-message {
		flex: 0 0 100%;
	}

	.add-ingredient-to-cart {
		flex: 0 0 100%;
	}
}

.add-ingredient-to-cart, .add-all-to-cart-button {
	padding: 3px 9px !important;
	margin-top: 3px;
	background-color:#96a78c !important;
}

.add-ingredient-to-cart:hover {
	background-color: #2f855a;
}
.total-recipe-price-display {
	margin-top: 25px
}
.add-all-to-cart-wrapper, .samlet-pris-forklaring {
	margin-top: 5px;
	font-style: italic;
}

.recipe-directions img {
	margin: 9px 0 15px 0;
}
.recipe-directions ol,
.recipe-directions ul {
  list-style: none !important;
  padding-left: 0;
  counter-reset: recipe-step;
}
.recipe-directions ol li,
.recipe-directions ul li {
  font-size: 16px;
  padding-left: 2.5em;
  position: relative;
  margin-bottom: 0.6em;
  counter-increment: recipe-step;
}
.recipe-directions ol li::before,
.recipe-directions ul li::before {
  content: counter(recipe-step) ".";
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.5em;
  line-height: 1;
  color: inherit;
}

/* ── My Account – Saved Recipes ── */
.saved-recipes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.saved-recipe-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.saved-recipe-item a {
  font-size: 15px;
  color: #333;
  text-decoration: none;
}
.saved-recipe-item a:hover {
  text-decoration: underline;
}
.unsave-recipe-btn {
  background: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 13px;
  color: #888;
  white-space: nowrap;
}
.unsave-recipe-btn:hover {
  color: #c00;
  border-color: #c00;
}
.saved-recipes-pagination {
  display: flex;
  gap: 4px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.saved-recipes-pagination .page-btn {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
}
.saved-recipes-pagination .page-btn.active {
  background: #333;
  color: #fff;
  border-color: #333;
}
.saved-recipes-pagination .page-btn:hover:not(.active) {
  background: #e0e0e0;
}

/* Mobilvenlig (beholder lodret layout) */
@media (max-width: 600px) {
	.add-ingredient-to-cart {
		width: 100%;
	}
	.recipe-directions ol li,
	.recipe-directions ul li {
		font-size: 14px;
		padding-left: 2em;
	}
}