.refill_prescription-search-wrapper {
    display: flex;
    min-height: 100vh;
    justify-content: center;
flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    padding: 1rem;
}
.refill_prescription-card {
    background-color: #fff;
    border-radius: 8px;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);*/
    width: 100%;
    max-width: 800px;
    /*overflow: hidden;*/
    flex: 1 1 0;
    padding: 50px;
}

.refill_prescription-card-header {
    background-color: #00a8b3;
    color: #fff;
    padding: 2rem;
    text-align: start;
    border-radius: 10px;
}
.refill_prescription-card-header h1{
	font-size: 33px;
	text-align: center;
}

.refill_prescription-card-header h2 {
    margin: 0;
    font-size: 2rem;
}

.refill_prescription-card-body {
    padding: 1.5rem;
}

.refill_prescription-form {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 1rem;
}

.refill_prescription-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 15px;
}

.refill_prescription-form-group .required {
    color: #e74c3c;
}

.refill_prescription-form-group input {
    width: 90%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccd0d5;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.refill_prescription-form-group input:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.refill_prescription-form-actions {
    text-align: center;
    margin-top: 0.5rem;
}
#review-patient-info-panel{
    display: none;
}

.refill_prescription-form-group {
    position: relative;
    margin-bottom: 15px;
}
.refill_prescription-form-group input:invalid {
    border: 2px solid #ffcccc;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
    animation: shake 0.5s;
}

.refill_prescription-form-group input:valid {
    border: 2px solid #88c788;
}

.error-bubble {
    display: none;
    position: absolute;
    background: #ffeeee;
    color: #d32f2f;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    bottom: -25px;
    left: 5px;
    z-index: 10;
    animation: fadeIn 0.3s;
}

.refill_prescription-form-group input:invalid + .error-bubble {
    display: block;
}

.validation-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #ccc;
}

input:valid + .validation-icon::after {
    content: "✓";
    color: #2e7d32;
}

input:invalid + .validation-icon::after {
    content: "✗";
    color: #d32f2f;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.illustrated-empty-state {
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    text-align: center;
}
.illustrated-empty-state svg {
    margin-bottom: 10px;
    animation: bounce 1.5s infinite;
}
.illustrated-empty-state h3 {
    color: #00bcd4;
    font-size: 1.5em;
    margin: 10px 0;
    padding: 15px;
}
.empty-card h4 {
	color: #00bcd4;
	font-size: 1.5em;
	margin: 10px 0;
}

.illustrated-empty-state p {
    color: #666;
    margin-bottom: 15px;
}

.card-empty-state {
    padding: 20px;
    background: #FFFFFF;
    text-align: center;
}

.empty-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    display: block;

}

.empty-card i {
    margin-bottom: 10px;
    animation: bounce 1.5s infinite;
}

.empty-card p {
    color: #666;
    margin-bottom: 15px;
}

.btn-secondary {
    background: #00bcd4;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background:#00a8b37a ;
}

.loading-spinner {
	display: none;
	width: 40px;
	height: 40px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #00bcd4;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-left: 10px;
	vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#btn-next{
    display: flex;
    justify-content: center;
}
#patient-info-container{
    padding: 30px;
}
#prescription-info-container{
    padding: 30px;
}


.btn-primary {
    background-color: #00a8b3;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: outline-offset 200ms ease;
    outline: 2px solid #00c2cb;
    outline-offset: 3px;
    margin-left: 40px;
}
.refill_prescription .btn-primary:hover{
    outline-offset: 3px;
}

.refill-button{
    position:relative;
    display:flex;
	justify-content: center;
    margin:20px;
    border-radius: 10px;
}
.refill-button a{
    color:white;
    font-family:Helvetica, sans-serif;
    font-weight:bold;
    font-size:15px;
    text-align: center;
    text-decoration:none;
    background-color:#00a8b3;
    display:block;
    position:relative;
    padding:20px 40px;

    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    text-shadow: 0px 1px 0px #000;
    filter: dropshadow(color=#000, offx=0px, offy=1px);

    -webkit-box-shadow:inset 0 1px 0 #00a8b3, 0 10px 0 #438e93;
    -moz-box-shadow:inset 0 1px 0 #00a8b3, 0 10px 0 #915100;
    box-shadow:inset 0 1px 0 #00a8b3, 0 10px 0 #438e93;

    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.refill-button a:active{
    top:10px;
    background-color:#00a8b3;

    -webkit-box-shadow:inset 0 1px 0 #00a8b3, inset 0 -3px 0 #00a8b3;

    box-shadow:inset 0 1px 0 #00a8b3, inset 0 -3px 0 #00a8b3;
}
.refill-button :after{
    content:"";
    height:100%;
    width:100%;
    padding:4px;
    position: absolute;
    bottom:-15px;
    left:-4px;
    z-index:-1;
    background-color:#00a8b3;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}


.table th:focus,
.table td:focus {
	outline: none;
	box-shadow: 0 0 0 2px #00bcd4;
}

.table {
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /*background-color: #eee;*/

}

.table-striped tbody tr:nth-child(odd) {
	background-color: #ffffff;
}

.table-hover tbody tr:hover {
    background-color: #e0f7fa;
    transform: translateY(-4px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.table-light {
	background-color: #ecf0f1;
}

.table th {
	background-color: #00a8b3 ;
	color: #fff;
	padding: 15px;
	text-align: center;
	font-weight: 700;
	border-bottom: 2px solid #34495e;
	transition: background-color 0.3s;
    min-width: 130px;

}

.table th:hover {

}

.table td {
	padding: 12px;
	text-align: center;
	vertical-align: middle;
	color: #34495e;
	transition: background-color 0.3s;
}

.table td:empty {
	color: #7f8c8d;
	font-style: italic;
}
.refill_prescription-btn-submit {
	color: white;
	font-family: Open Sans,sans-serif;
	font-weight: 600;
	font-size: 20px;
	text-align: center;
	text-decoration: none;
	background-color: #00a8b3;
	display: inline-block;
	position: relative;
	padding: 10px 20px;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	filter: dropshadow(color=#000, offx=0px, offy=1px);

	-webkit-box-shadow: inset 0 1px 0 #00a8b3, 0 10px 0 #438e93;
	-moz-box-shadow: inset 0 1px 0 #00a8b3, 0 10px 0 #438e93;
	box-shadow: inset 0 1px 0 #00a8b3, 0 10px 0 #438e93;

	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	transition: top 0.1s ease, box-shadow 0.1s ease;
}

.refill_prescription-btn-submit:hover {
	outline-offset: 0;
	top: 0;
}

.refill_prescription-btn-submit:active {
	top: 10px;
	background-color: #00a8b3;
	-webkit-box-shadow: inset 0 1px 0 #00a8b3, inset 0 -3px 0 #00a8b3;
	-moz-box-shadow: inset 0 1px 0 #00a8b3, inset 0 -3px 0 #00a8b3;
	box-shadow: inset 0 1px 0 #00a8b3, inset 0 -3px 0 #00a8b3;
}

.refill_prescription-btn-submit:after {
	content: "";
	height: 100%;
	width: 100%;
	padding: 4px;
	position: absolute;
	bottom: -15px;
	left: -4px;
	z-index: -1;
	background-color: #00a8b3;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}

.table .btn{
    font-size: small;
}
.refill_prescription-form-group{
    padding-left: 55px;
}


.refill.progress {
    --progress-width: 0%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    /*padding: 1rem 0;*/
    margin: 0;
    position: sticky;
    top: 20px;
    background: white;
    z-index: 10;
    padding-top: 120px;
    padding-bottom: 80px;
}

.progress_step {
    position: relative;
    text-align: center;
    flex: 1;
    padding-bottom: 30px;
    z-index: 2;
}
.refill.progress::before {

    content:"";
    position:absolute;
    top:50%; left:0; right:0;
    height:4px;
    transform:translateY(-50%);
    z-index:0;
    background: linear-gradient(
            to right,
            #00a8b3 var(--progress-width),
            #ddd    var(--progress-width)
    );
}

.refill.progress::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    width: var(--progress-width);
    background: #00a8b3  ;
    transform: translateY(-50%);
    transition: width 600ms cubic-bezier(.4,0,.2,1);
    z-index: 1;
}
.progress_circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    position: relative;
    transition: background-color 300ms ease, transform 300ms ease;
}

.progress_step.is-active .progress_circle {
    background: #00a8b3;
    color: white;
    transform: scale(1.2);
}

.progress_step.is-complete .progress_circle {
    background: #00a8b3;
    color: white;
}

.progress_label {
    margin-top: 0.5rem;
    font-size: 1.3rem;
    color: #333;
}
@media (prefers-reduced-motion: no-preference) {
    .progress_step.is-active .progress_circle {
        transition: background-color 500ms ease, transform 500ms ease;
    }
    .progress_step .progress_circle[data-just-activated] {
        animation: pop-back 300ms ease-out forwards;
    }
    @keyframes pop-back {
        from { transform: scale(1.2); }
        to   { transform: scale(1);   }
    }
}
@media (prefers-reduced-motion: reduce) {
    .progress_circle {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
}



.refill-summary ul {
	list-style: none;
	padding: 0;
}

.refill-summary li {
	margin: 5px 0;
}

.refill-summary li.invalid {
	color: #d32f2f;
	font-weight: bold;
}

.refill-summary.show {
	display: block !important;
	opacity: 1;
}
.toggle-button {
	padding: 5px 10px;
	background-color: #00a8b3;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.3s ease;
}

.toggle-button:hover {
	background-color: #008b94;
}

#summary-list.collapsed {
	display: none;
}
.summary-actions {
	margin-top: 10px;
	text-align: right;
}
.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    cursor: pointer;
    padding: 5px 10px;
}


@keyframes pop-in {
    0%   { transform: scale(0.8); opacity: 0; }
    60%  { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1);   opacity: 1; }
}

@keyframes pop-out {
    0%   { transform: scale(1);   opacity: 1; }
    40%  { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0; }
}

.chip {
	display: inline-block;
	margin: 4px;
	padding: 6px 12px;
	background: #e0f7fa;
	border-radius: 16px;
	font-size: 0.9rem;
	color: #006064;
	cursor: default;

	transform-origin: center center;
}
.refill-details{
	background-color:#28b2bb21;
    padding-left: 30px;
    border-radius: 10px;
    padding-right: 30px;
    text-align: center;
}

#shipping-address-form{
    display: block;
    padding: 30px;
}

.table .table{
    background-color: #00a8b31f;
}
.row-selected{
    background‐color:  #00a8b31f;
}

@keyframes rowBounce {
    0%   { transform: translateY(0); }
    30%  { transform: translateY(-8px); }
    60%  { transform: translateY(4px); }
    100% { transform: translateY(0); }
}

.row‑bounce {
    animation: rowBounce 0.4s ease;
}

.load‑tick {
    margin-left: 0.5em;
    color: aliceblue;
    font-size: 1em;
}
.refill-summary {
    background: #ffffff;
    border: 2px solid #00a8b373;;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    transition: box-shadow 0.3s ease;
    display: none;
}

#summary-list li {
    padding: 8px 12px;
    margin: 5px 0;
    background: #f8f9fa;
    border-radius: 6px;
    opacity: 0;
    transform: scale(0.9);
    animation: itemEnter 0.3s ease forwards;
}
@keyframes itemEnter {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}
#summary-list li.removing {
    animation: itemExit 0.3s ease forwards;
}
@keyframes itemExit {
    0% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(-100%); }
}
.summary-actions .btn {
    padding: 8px 16px;
    margin-left: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
}
.summary-actions .save{
    background-color: #008000ab;
    color: #FFFFFF;
}

.summary-actions .clear {
    background:  #e71c1c;
    color: #fff;
}
.summary-actions .clear:hover {
    background: #5a6268;
    transform: translateY(-2px);
}
.summary-actions .clear:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.summary-footer {
    padding: 10px;
    background: #e9ecef;
    border-top: 1px solid #dee2e6;
    text-align: right;
    font-weight: bold;
    color: #333;
    border-radius: 0 0 6px 6px;
}
.summary-header {
     display: flex;
     justify-content: space-between;
     align-items: baseline;
     padding: 12px 15px;
     background: linear-gradient(90deg, #e9ecef, #ffffff);
     border-radius: 8px 8px 0 0;
     border-bottom: 1px solid #dee2e6;
     font-family: 'Helvetica', sans-serif;
     cursor: pointer;
     transition: background 0.3s ease, box-shadow 0.3s ease;
     position: relative;
     overflow: hidden;
     flex-direction: column;
 }

.summary-header:hover {
    background: linear-gradient(90deg, #dfe4ea, #f8f9fa);
    box-shadow: 0 2px 8px rgba(0, 168, 179, 0.1);
}

.summary-header-content {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-direction: column;

}
#refill-summary .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-left: 4px solid #00a8b3;
    border-radius: 4px;
    transition: transform 0.2s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}
#refill-summary.summary-item:last-child {
    margin-bottom: 0;
}
#refill-summary .item-details {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#refill-summary .detail-row {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    display: flex;
    gap: 8px;
}

#refill-summary .detail-row strong {
    color: #444;
    min-width: 100px;
    font-weight: 500;
}

#refill-summary .item-actions {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.item-quantity {
    font-size: 14px;
    color: #28a745;
    font-weight: 500;
    padding: 2px 8px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 4px;
}

.summary-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}



@media (max-width: 768px) {
    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .item-actions {
        align-items: flex-start;
    }
    .detail-row {
        flex-direction: column;
        gap: 2px;
    }
    .detail-row strong {
        min-width: auto;
    }
}
.summary-title {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
}

.summary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: #00a8b3;
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;

}
.badge{
    font-size: 15px !important;
    height: 25px;
}



.toggle-icon {
    font-size: 18px;
    color: #00a8b3;
    transition: transform 0.3s ease, color 0.3s ease;
}

.summary-header.collapsed .toggle-icon {
    transform: rotate(-180deg);
    color: #008b94;
}

.summary-header:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 168, 179, 0.4);
}

.summary-header:focus-visible {
    outline: 2px solid #00a8b3;
}

@media (max-width: 600px) {
    .summary-header {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    .summary-header-content {
        flex-direction: column;
        gap: 5px;
    }
    .summary-badge {
        margin-top: 5px;
    }
}
/*payment modal*/
.refill-payment .modal-content {
    border-radius: 10px;
    overflow: hidden;
    max-height: 95vh;
    transition: all 0.3s ease;
}
.refill-payment .modal-dialog {
    transition: all 0.3s ease;
    margin: 1.75rem auto;
}
.refill-payment .modal-header {
    background-color:#00a8b32e;
    position: sticky;
    top: 0;
    z-index: 10;
}

.refill-payment .modal-body {
    padding: 0;
    overflow-y: auto;
    max-height: calc(95vh - 120px);
}

.refill-payment .payment-cards {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    min-height: 400px;
    flex-wrap: wrap;
}
/* Enhanced responsive behavior */
@media (max-width: 768px) {
    .refill-payment .payment-cards {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .refill-payment .modal-dialog {
        width: 95% !important;
        max-width: none;
        margin: 0.5rem auto;
    }
    
    .refill-payment .modal-content {
        max-height: 98vh;
    }
    
    .refill-payment .modal-body {
        max-height: calc(98vh - 100px);
    }
}

/* Product list controls */
.product-list-controls {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
}

.product-list-controls .toggle-product-list {
    background: #00a8b3;
    border-color: #00a8b3;
    color: white;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.product-list-controls .toggle-product-list:hover {
    background: #008a94;
    border-color: #008a94;
    transform: translateY(-1px);
}

.product-list-controls .toggle-product-list i {
    margin-right: 5px;
    transition: transform 0.3s ease;
}

/* Collapsible product list */
#order-summary-list.collapsible-enabled {
    transition: all 0.3s ease;
}

#order-summary-list.collapsible-enabled.collapsed {
    max-height: 400px;
    overflow: hidden;
}

/* Enhanced card styles */
.refill-payment .card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex: 1;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    min-width: 300px;
}

.refill-payment .card:hover {
    box-shadow: 0 4px 12px rgba(0, 168, 179, 0.1);
    transform: translateY(-2px);
}

.refill-payment .card-header {
    background:#00a8b32e;
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
    position: sticky;
    top: 0;
    z-index: 5;
}

.refill-payment .card-title {
    font-size: 18px;
    color: #00a8b3;
    font-weight: 600;
    margin: 0;
}

.refill-payment .card-body {
    padding: 15px;
    overflow-y: auto;
    max-height: calc(95vh - 200px);
}

.refill-payment .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.refill-payment .form-group {
    flex: 1;
    min-width: 250px;
}

.refill-payment .form-group label {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
    display: block;
    font-weight: 500;
}

.refill-payment .form-control {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.refill-payment .form-control:focus {
    border-color: #00a8b3;
    box-shadow: 0 0 5px rgba(0, 168, 179, 0.3);
    outline: none;
}

.refill-payment .modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 15px 20px;
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.refill-payment .modal-footer .footer-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.refill-payment .btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.refill-payment .btn-secondary {
    background-color: #e22121;
    color: white;
}

.refill-payment .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.refill-payment .btn-primary {
    background-color: #00a8b3;
    color: white;
}

.refill-payment .btn-primary:hover {
    background-color: #008a94;
    transform: translateY(-1px);
}

.order-summary-item {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.order-summary-item:hover {
    border-color: #00a8b3;
    box-shadow: 0 2px 8px rgba(0, 168, 179, 0.1);
}

.order-summary-item .item-details dl {
    margin: 0;
}

.order-summary-item .item-details dt {
    font-weight: 600;
    color: #495057;
    font-size: 13px;
}

.order-summary-item .item-details dd {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 8px;
}
@media (max-width: 1200px) {
    .refill-payment .payment-cards {
        gap: 15px;
    }
    .refill-payment .card {
        min-width: 280px;
    }
}
@media (max-width: 992px) {
    .refill-payment .form-row {
        flex-direction: column;
        gap: 15px;
    }
    .refill-payment .form-group {
        min-width: 100%;
    }
}
.refill-payment .modal-body::-webkit-scrollbar,
.refill-payment .card-body::-webkit-scrollbar {
    width: 8px;
}

.refill-payment .modal-body::-webkit-scrollbar-track,
.refill-payment .card-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.refill-payment .modal-body::-webkit-scrollbar-thumb,
.refill-payment .card-body::-webkit-scrollbar-thumb {
    background: #00a8b3;
    border-radius: 4px;
}

.refill-payment .modal-body::-webkit-scrollbar-thumb:hover,
.refill-payment .card-body::-webkit-scrollbar-thumb:hover {
    background: #008a94;
}

.refill-payment .modal-title{
    text-align: center;
    font-size: x-large;
    color: #00A8B3;
    font-weight: 700;
}

.shipping-method .modal-ask-user {
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: none;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shipping-method .modal-ask-user:hover {
    box-shadow: 0 6px 25px rgba(0, 168, 179, 0.15);
    transform: translateY(-2px);
}

.shipping-method .decision-card {
    text-align: center;
    padding: 25px;
    border-radius: 10px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.shipping-method .prompt-text {
    font-size: medium;
    color: #333;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.4;
    padding: 0 15px;
	text-align: center;
}

.refill-button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.refill-button-group .btn {
    padding: 10px 25px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.refill-button-group .btn-primary {
    background-color: #008000ab;
    color: #fff;
}

.refill-button-group .btn-primary:hover {
    background-color: #0080007d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 179, 0.3);
}

.refill-button-group .btn-secondary {
    background: #1941476b;
    color: #fff;
}

.refill-button-group .btn-secondary:hover {
    background: #d199177a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.refill-button-group .btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 168, 179, 0.4);
}

@media (max-width: 480px) {
    .modal-ask-user {
        max-width: 100%;
        margin: 10px;
        padding: 15px;
    }
    .decision-card {
        padding: 15px;
    }
    .refill-button-group {
        flex-direction: column;
        gap: 10px;
    }
    .refill-button-group .btn {
        width: 100%;
    }
}
.shipping-modal .form-group label{
    font-weight:600;
    font-size: 16px;
    color:#171818;

}
.refill .form-check{
    padding: 6px;
}
.refill .form-check-label{
    padding-bottom: 10px;
}
.refill-shipping .modal-title{
    text-align: center;
    font-size: x-large;
    color: #00A8B3;
    font-weight: 700;
}
.refill-shipping .modal-header{
    background-color:#00a8b32e ;
}
#btn-shipping-next .btn-primary{
    margin-left: 30px;
    font-size: 14px;
    height: 40px;
    width: 70px;

}
.shipping-method .modal-header{
    background-color:#00a8b32e
}
.shipping-method .modal-title{
    text-align: center;
    font-size: x-large;
    color: #00A8B3;
    font-weight: 700;
}
#payment-modal .modal-footer{
    display:flex;
    align-items:normal;
    justify-content:end;
    gap:.5rem;
    flex-wrap: wrap;
}
#payment-modal .modal-footer .footer-actions{
    display:flex;
    gap:.5rem;
    flex-wrap: wrap;
}
#payment-modal .btn.btn-back{
    background-color: #6c757d;
    color: white;
}
#payment-modal .btn.btn-back:hover{
    background-color: #5a6268;
}

#refill-gif-loading-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 30000;
}
#refill-gif-loading-overlay[aria-hidden="false"] {
    display: flex;
}
.refill-gif-backdrop {
    position: absolute;
    inset: 0;
    background:#ffffff57;
    backdrop-filter: blur(3px);
}
.refill-gif-content {
    position: relative;
    text-align: center;
    padding: 1rem;
}
.refill-gif-spinner {
    width:150px;
    height: 150px;
    display: block;
    margin: 0 auto 0.5rem;
}
#refill-gif-overlay-message {
    font-size: 2rem;
    color: #333;
}
span.prod-tooltip {
    max-width: 600px;
    text-overflow: ellipsis;
    overflow: hidden;
    display: inline-block;
    white-space: nowrap;
    position: relative;
}
.pharmacy-order-confirmation {
    font-family: 'Inter', 'Roboto', sans-serif;
    min-height: 100vh;
    padding: 40px 20px;
}

.full-page-success {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.success-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.success-icon {
    position: relative;
    padding-top: 50px;
}

.success-gif {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 150px;
    z-index: 2;

}

.success-title {
    font-size: 3rem;
    font-weight: 700;
    color: #41683b;
    margin-bottom: 0.5rem;
}

.success-subtitle {
    font-size: 2rem;
    color: #3c876c;
    font-weight: 500;
}

.success-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.confirmation-box {
    margin-bottom: 1.5rem;
}

.confirmation-list li {
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.contact-info {
    font-size: 1.1rem;
    color: #333;
}

.contact-info a {
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #0056b3;
}

.action-buttons .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #00a8b3 100%);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-buttons .btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.action-buttons .btn-outline-primary {
    border-color: #007bff;
    color: #00a8b3;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.action-buttons .btn-outline-primary:hover {
    background-color: #00a8b3;
    color: #fff;
}

.resources-section {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2172a3;
    margin-bottom: 1.5rem;
}

.resource-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resource-card {
    display: block;
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    text-decoration: none;
    color: #00a8b3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.resource-card i {
    font-size: 1.5rem;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease-in-out 0.3s backwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
    100% { transform: translateX(-50%) translateY(0); }
}

@media (max-width: 768px) {
    .success-title {
        font-size: 2rem;
    }

    .success-subtitle {
        font-size: 1rem;
    }

    .success-content {
        padding: 1.5rem;
    }

    .confirmation-list li {
        font-size: 1rem;
        text-align: left;
    }

    .contact-info {
        font-size: 1rem;
    }

    .action-buttons .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .action-buttons .btn:last-child {
        margin-bottom: 0;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .resource-card {
        padding: 0.75rem;
    }
}


.add-products-container {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	border: 1px solid rgba(0, 168, 179, 0.2);
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	margin-top: 15px;
	transform-origin: left;
	transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	max-height: 0;
	opacity: 0;
	transform: translateX(-100%) scale(0.9);
}


.add-products-container.open {
	max-height: 600px;
	opacity: 1;
	transform: translateX(0) scale(1);
	padding: 20px;
}

.add-products-container .body.oly-scroll {
	overflow-y: auto;
	max-height: 380px;
	padding: 15px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 6px;
	box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}


.add-products-container .body .add-on-option {
	padding: 12px 15px;
	border-bottom: 1px solid rgba(0, 168, 179, 0.1);
	transition: background-color 0.3s ease, transform 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.add-products-container .body .add-on-option:hover {
	background-color: rgba(0, 168, 179, 0.05);
	transform: translateX(5px);
}

.add-products-container .select-btn {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1.1rem;
	color: #00a8b3;
	transition: color 0.3s ease;
}

.add-products-container .select-btn:hover {
	color: #008b94;
}


@keyframes slideAndExpand {
	0% {
		transform: translateX(-100%) scale(0.9);
		opacity: 0;
		filter: blur(5px);
	}
	50% {
		transform: translateX(10%) scale(1.1);
		opacity: 0.5;
		filter: blur(2px);
	}
	100% {
		transform: translateX(0) scale(1);
		opacity: 1;
		filter: blur(0);
	}
}

.add-products-container.open .body {
	animation: slideAndExpand 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}


.add-products-container.open {
	transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
	opacity 0.3s ease,
	transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}


@media (max-width: 768px) {
	.add-products-container.open {
		max-height: 350px;
	}
	.add-products-container .body.oly-scroll {
		max-height: 280px;
	}
}


.add-on-option.selected {
	background-color: #e6f7ff;
}


.add-on-option {
	cursor: pointer;
}


.add-on-option .fa-square-check {
	display: none;
}


.add-on-option.selected .fa-square {
	display: none;
}
.add-on-option.selected .fa-square-check {
	display: inline-block;
}

.disabled-product {
	opacity: 0.5;
	background-color: #f8f9fa !important;
	pointer-events: none;
}

.disabled-product td {
	color: #6c757d !important;
}

.disabled-product input[type="checkbox"]:disabled {
	cursor: not-allowed;
}

.disabled-product input[type="number"]:disabled {
	cursor: not-allowed;
	background-color: #e9ecef;
}

.disabled-product::before {
	content: "⛔";
	position: absolute;
	left: 5px;
	top: 50%;
	transform: translateY(-50%);
	color: #dc3545;
	font-size: 12px;
	z-index: 1;
}

@media (max-width: 576px) {
    .refill-payment .modal-dialog {
        width: 98% !important;
        margin: 0.25rem auto;
    }
    
    .refill-payment .modal-content {
        max-height: 99vh;
    }
    
    .refill-payment .modal-body {
        max-height: calc(99vh - 80px);
        padding: 10px;
    }
    
    .refill-payment .payment-cards {
        padding: 10px;
        gap: 10px;
    }
    
    .refill-payment .card {
        min-width: 100%;
    }
    
    .refill-payment .modal-footer {
        padding: 10px 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .refill-payment .modal-footer .footer-actions {
        width: 100%;
        justify-content: center;
    }
    
    .product-list-controls {
        padding: 8px 12px;
    }
    
    .product-list-controls .toggle-product-list {
        width: 100%;
        text-align: center;
    }
}

.refill-payment .modal-content:focus {
    outline: 2px solid #00a8b3;
    outline-offset: 2px;
}

.refill-payment .btn:focus {
    outline: 2px solid #00a8b3;
    outline-offset: 2px;
}


.refill-payment .modal-dialog,
.refill-payment .modal-content,
.refill-payment .card,
.refill-payment .btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.refill-payment .modal-content.loading {
    opacity: 0.7;
    pointer-events: none;
}

.refill-payment .modal-content.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00a8b3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}


	.order-summary-item {
		border: 1px solid #e2e8f0;
		border-radius: 8px;
		transition: all 0.3s ease;
		position: relative;
	}

	.order-summary-item:hover {
		border-color: #cbd5e0;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	}

	.order-summary-item .item-details dl {
		margin-bottom: 0;
	}

	.order-summary-item .item-details dt {
		font-weight: 600;
		color: #4a5568;
		margin-bottom: 5px;
	}

	.order-summary-item .item-details dd {
		color: #2d3748;
		margin-bottom: 5px;
	}

	/* Delete Button Styling - Positioned on top right corner */
	.delete-product-item {
		position: absolute;
		top: 8px;
		right: 8px;
		transition: all 0.2s ease;
		border: 1px solid #e53e3e;
		color: #e53e3e;
		background: transparent;
		z-index: 10;
		padding: 4px 8px;
		border-radius: 4px;
	}

	.delete-product-item:hover {
		background: #e53e3e;
		color: white;
		transform: scale(1.05);
		box-shadow: 0 4px 8px rgba(229, 62, 62, 0.3);
	}

	.delete-product-item:focus {
		box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.3);
		outline: none;
	}

	.delete-product-item i {
		font-size: 12px;
	}


	.order-summary-item .item-actions {

		align-items: center;
		gap: 10px;
		position: relative;
	}

	@media (max-width: 768px) {
		.delete-product-item {
			top: 5px;
			right: 5px;
			padding: 6px 10px;
		}
	}

	#refill-product-delete .alert {
		border-radius: 8px;
		border: none;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
		animation: slideInRight 0.3s ease-out;
	}

refill-product-delete .alert-success {
		background: linear-gradient(135deg, #48bb78, #38a169);
		color: white;
	}

refill-product-delete .alert-info {
		background: linear-gradient(135deg, #4299e1, #3182ce);
		color: white;
	}

refill-product-delete .alert .close {
		color: white;
		opacity: 0.8;
		text-shadow: none;
	}

refill-product-delete .alert .close:hover {
		opacity: 1;
	}

	@keyframes slideInRight {
		from {
			transform: translateX(100%);
			opacity: 0;
		}
		to {
			transform: translateX(0);
			opacity: 1;
		}
	}

	@media (max-width: 576px) {
		refill-product-delete .alert {
			right: 10px !important;
			left: 10px !important;
			min-width: auto !important;
			max-width: none !important;
		}
	}

	.rx-pay-by, .last-refill-date {
		text-align: center;
		vertical-align: middle;
		font-size: 0.9rem;
		padding: 8px 4px;
		max-width: 120px;
		word-wrap: break-word;
	}

	.rx-pay-by {
		color: #2c5aa0;
		font-weight: 500;
	}

	.last-refill-date {
		color: #059669;
		font-weight: 500;
	}
	@media (max-width: 1400px) {
		.rx-pay-by, .last-refill-date {
			max-width: 100px;
			font-size: 0.8rem;
			padding: 6px 2px;
		}
	}

	@media (max-width: 1200px) {
		.rx-pay-by, .last-refill-date {
			max-width: 80px;
			font-size: 0.75rem;
			padding: 4px 1px;
		}
	}

	/* Table header styling for new columns */
	#pt-details th:nth-child(10),
	#pt-details th:nth-child(11) {
		background-color: #f8f9fa;
		border-bottom: 2px solid #dee2e6;
		font-weight: 600;
		color: #495057;
	}

	.rx-pay-by:contains("Bill To"),
	.last-refill-date:contains("00-00-0000") {
		color: #6c757d;
		font-style: italic;
		font-size: 0.8rem;
	}

	.rx-pay-by.has-data,
	.last-refill-date.has-data {
		background-color: #d4edda;
		border: 1px solid #c3e6cb;
		border-radius: 4px;
		font-weight: 600;
	}

	.rx-pay-by.no-data,
	.last-refill-date.no-data {
		background-color: #f8d7da;
		border: 1px solid #f5c6cb;
		border-radius: 4px;
		color: #721c24;
		font-style: italic;
	}


	.rx-pay-by.has-data:hover,
	.last-refill-date.has-data:hover {
		background-color: #c3e6cb;
		transform: scale(1.02);
		transition: all 0.2s ease;
	}

	.rx-pay-by.has-data,
	.last-refill-date.has-data {
		position: relative;
		cursor: help;
	}

	.rx-pay-by.has-data::after,
	.last-refill-date.has-data::after {
		content: attr(title);
		position: absolute;
		bottom: 100%;
		left: 50%;
		transform: translateX(-50%);
		background-color: #333;
		color: white;
		padding: 5px 8px;
		border-radius: 4px;
		font-size: 12px;
		white-space: nowrap;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease;
		z-index: 1000;
	}

	.rx-pay-by.has-data:hover::after,
	.last-refill-date.has-data:hover::after {
		opacity: 1;
		visibility: visible;
	}

.rx-pay-by.provider-pay-warning {
    background-color: #fff3cd !important;
    border: 2px solid #ffc107 !important;
    border-radius: 4px;
    color: #856404 !important;
    font-weight: 700;
    position: relative;
    animation: pulse-warning 2s infinite;
}

.rx-pay-by.provider-pay-warning::before {
    content: "⚠️";
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    animation: blink 1.5s infinite;
	padding-left: 50px;
}

@keyframes pulse-warning {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.3;
    }
}
.rx-pay-by.provider-pay-warning:hover {
    background-color: #ffeaa7 !important;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

@media (max-width: 1400px) {
    .rx-pay-by.provider-pay-warning::before {
        font-size: 12px;
        left: -3px;
    }
}

@media (max-width: 1200px) {
    .rx-pay-by.provider-pay-warning::before {
        font-size: 10px;
        left: -2px;
    }
}

.alert-warning {
    border-left: 5px solid #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.alert-warning h4 {
    color: #856404;
    margin-bottom: 15px;
    font-weight: 700;
}

.alert-warning h4 i {
    margin-right: 8px;
    animation: pulse-warning 2s infinite;
}

.alert-warning p {
    color: #856404;
    margin-bottom: 10px;
    line-height: 1.6;
}

.alert-warning p:last-child {
    margin-bottom: 0;
}

.alert-warning strong {
    color: #6f5200;
    font-weight: 700;
}

.alert-warning.provider-pay-alert {
    position: relative;
    overflow: hidden;
}

.alert-warning.provider-pay-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffc107, #ff8f00, #ffc107);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.addons-table-wrapper {
	max-height: 60vh;
	overflow-y: auto;
	overflow-x: hidden;
}

.addons-table {
	table-layout: fixed;
	width: 100%;
}
.addons-table th, .addons-table td {
	white-space: normal;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.addons-table .col-product { width: 46%; }
.addons-table .col-price   { width: 16%; }
.addons-table .col-qty     { width: 14%; }
.addons-table .col-total   { width: 14%; }

.addons-table thead.sticky-top { position: sticky; top: 0; z-index: 2; }

.addons-table input[type="number"] {
	width: 100%;
	text-align: right;
}

.addon-row.selected {
	background-color: #f0f8ff;
}
#addons-modal .close{
	padding-bottom: 30px;
	display: flex;

}
#addons-modal .modal-title{
	background: #00a8b330;
	border-radius: 10px;
	font-size: 20px;
	padding: 10px;
	text-align: center;
	color: #00a8b3;
	font-weight: 600;

}
.invalid-feedback{
	color: red;
}
